From f019bd5b7c3546f41ac0b2fd16f718b05729b730 Mon Sep 17 00:00:00 2001 From: joe Date: Mon, 8 Apr 2002 18:13:21 +0000 Subject: [PATCH] Lock down Giant in the usb_task_thread() kthread. --- sys/dev/usb/usb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c index 7c176a0fe2a0..94bc3a22fe78 100644 --- a/sys/dev/usb/usb.c +++ b/sys/dev/usb/usb.c @@ -425,6 +425,10 @@ usb_task_thread(void *arg) struct usb_task *task; int s; +#ifdef __FreeBSD__ + mtx_lock(&Giant); +#endif + DPRINTF(("usb_task_thread: start\n")); s = splusb();