summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/sunpm.c
diff options
context:
space:
mode:
authorcth <none@none>2006-01-26 19:27:50 -0800
committercth <none@none>2006-01-26 19:27:50 -0800
commit737d277a27d4872543f597e35c470e7510f61f03 (patch)
tree28fb97f55ef300256d8013cf2f8109e0347ba5a7 /usr/src/uts/common/os/sunpm.c
parent6c4d349c64bc0bfa31cf16194222a600760f52c1 (diff)
downloadillumos-joyent-737d277a27d4872543f597e35c470e7510f61f03.tar.gz
6369724 DS_READY references should be checked for correctness
Diffstat (limited to 'usr/src/uts/common/os/sunpm.c')
-rw-r--r--usr/src/uts/common/os/sunpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/os/sunpm.c b/usr/src/uts/common/os/sunpm.c
index 219edaa243..cd77e635d6 100644
--- a/usr/src/uts/common/os/sunpm.c
+++ b/usr/src/uts/common/os/sunpm.c
@@ -1697,7 +1697,7 @@ find_dip(dev_info_t *dip, char *dev_name, int holddip)
for (; dip != NULL; dip = ddi_get_next_sibling(dip)) {
if (strcmp(ddi_node_name(dip), device) == 0) {
/* If the driver isn't loaded, we prune the search */
- if (i_ddi_node_state(dip) < DS_READY) {
+ if (!i_ddi_devi_attached(dip)) {
continue;
}
if (strcmp(ddi_get_name_addr(dip), addr) == 0) {