summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/sunpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/os/sunpm.c')
-rw-r--r--usr/src/uts/common/os/sunpm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/uts/common/os/sunpm.c b/usr/src/uts/common/os/sunpm.c
index 80acb8c8f0..2fde5dfd89 100644
--- a/usr/src/uts/common/os/sunpm.c
+++ b/usr/src/uts/common/os/sunpm.c
@@ -995,7 +995,8 @@ pm_rescan(void *arg)
*/
if (DEVI_IS_ATTACHING(dip) ||
(scanp->ps_scan_flags & PM_SCAN_DISPATCHED) ||
- !taskq_dispatch(system_taskq, pm_scan, (void *)dip, TQ_NOSLEEP)) {
+ taskq_dispatch(system_taskq, pm_scan, (void *)dip, TQ_NOSLEEP) ==
+ TASKQID_INVALID) {
PMD(PMD_SCAN, ("%s: %s@%s(%s#%d): attaching, pm_scan already "
"dispatched or dispatching failed\n", pmf, PM_DEVICE(dip)))
if (scanp->ps_scan_id) {