PERFORCE change 143196 for review
Weongyo Jeong
weongyo at FreeBSD.org
Mon Jun 9 10:44:18 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=143196
Change 143196 by weongyo at weongyo_ws on 2008/06/09 10:43:52
fix a bug that it missed to set the status value of URB that it causes
problems failing to attach at some NDIS drivers.
Affected files ...
.. //depot/projects/ndisusb/sys/compat/ndis/subr_usbd.c#3 edit
Differences ...
==== //depot/projects/ndisusb/sys/compat/ndis/subr_usbd.c#3 (text+ko) ====
@@ -303,6 +303,11 @@
union usbd_urb *urb;
urb = usbd_geturb(ip);
+ /*
+ * In a case of URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER,
+ * USBD_URB_STATUS(urb) would be set at callback functions like
+ * usbd_intr() or usbd_xfereof().
+ */
switch (urb->uu_hdr.uuh_func) {
case URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER:
status = usbd_func_bulkintr(ip);
@@ -316,6 +321,7 @@
case URB_FUNCTION_CLASS_ENDPOINT:
case URB_FUNCTION_CLASS_OTHER:
status = usbd_func_vendorclass(ip);
+ USBD_URB_STATUS(urb) = status;
break;
case URB_FUNCTION_SELECT_CONFIGURATION:
status = usbd_func_selconf(ip);
More information about the p4-projects
mailing list