PERFORCE change 145325 for review
Weongyo Jeong
weongyo at FreeBSD.org
Wed Jul 16 12:31:16 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=145325
Change 145325 by weongyo at weongyo_ws on 2008/07/16 12:30:16
before we call a USB request (or transfer), make sure that there is
a sleepable lock normally it'd be Giant for USB1 framework.
Affected files ...
.. //depot/projects/ndisusb/sys/compat/ndis/subr_usbd.c#11 edit
Differences ...
==== //depot/projects/ndisusb/sys/compat/ndis/subr_usbd.c#11 (text+ko) ====
@@ -584,7 +584,9 @@
USETW(req.wValue, vcreq->uvc_value);
USETW(req.wLength, vcreq->uvc_trans_buflen);
+ mtx_lock(&Giant);
status = usbd_do_request(uaa->device, &req, vcreq->uvc_trans_buf);
+ mtx_unlock(&Giant);
return usbd_usb2urb(status);
}
More information about the p4-projects
mailing list