Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jul 2008 12:31:14 GMT
From:      Weongyo Jeong <weongyo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 145325 for review
Message-ID:  <200807161231.m6GCVE4J043228@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=145325

Change 145325 by weongyo@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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807161231.m6GCVE4J043228>