diff options
| author | cth <none@none> | 2006-01-26 19:27:50 -0800 |
|---|---|---|
| committer | cth <none@none> | 2006-01-26 19:27:50 -0800 |
| commit | 737d277a27d4872543f597e35c470e7510f61f03 (patch) | |
| tree | 28fb97f55ef300256d8013cf2f8109e0347ba5a7 /usr/src/uts/common/os/sunndi.c | |
| parent | 6c4d349c64bc0bfa31cf16194222a600760f52c1 (diff) | |
| download | illumos-joyent-737d277a27d4872543f597e35c470e7510f61f03.tar.gz | |
6369724 DS_READY references should be checked for correctness
Diffstat (limited to 'usr/src/uts/common/os/sunndi.c')
| -rw-r--r-- | usr/src/uts/common/os/sunndi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/os/sunndi.c b/usr/src/uts/common/os/sunndi.c index 4def654094..1e3cac22e8 100644 --- a/usr/src/uts/common/os/sunndi.c +++ b/usr/src/uts/common/os/sunndi.c @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -476,7 +476,7 @@ ndi_devctl_device_online(dev_info_t *dip, struct devctl_iocdata *dcp, * Invalidate devfs cached directory contents. For the checks * in the "if" condition see the comment in ndi_devi_online(). */ - if (i_ddi_node_state(dip) == DS_READY && !DEVI_BUSY_OWNED(dip)) + if (i_ddi_devi_attached(dip) && !DEVI_BUSY_OWNED(dip)) (void) devfs_clean(dip, NULL, 0); } else if (rval == NDI_BUSY) { |
