1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-21 15:45:02 +00:00

Drop Giant before calling kproc_exit(), so we don't trigger assertion in

kproc_exit().

Discussed with:	imp
This commit is contained in:
Pawel Jakub Dawidek 2008-05-20 12:34:30 +00:00
parent 661812c066
commit 7840976da5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179156

View File

@ -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);
}