summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/usb/usb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c
index 6f92c77..0cbf6bd 100644
--- a/sys/dev/usb/usb.c
+++ b/sys/dev/usb/usb.c
@@ -453,6 +453,8 @@ usb_event_thread(void *arg)
wakeup(sc);
DPRINTF(("usb_event_thread: exit\n"));
+ while (mtx_owned(&Giant))
+ mtx_unlock(&Giant);
kproc_exit(0);
}
@@ -490,6 +492,8 @@ usb_task_thread(void *arg)
wakeup(&taskq->taskcreated);
DPRINTF(("usb_event_thread: exit\n"));
+ while (mtx_owned(&Giant))
+ mtx_unlock(&Giant);
kproc_exit(0);
}
OpenPOWER on IntegriCloud