PERFORCE change 117996 for review

Hans Petter Selasky hselasky at FreeBSD.org
Fri Apr 13 11:00:32 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=117996

Change 117996 by hselasky at hselasky_mini_itx on 2007/04/13 11:00:10

	Fix a bug where "usbd_find_edesc()" returns the wrong descriptor.
	Reported by Markus Henschel.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_subr.c#31 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/usb_subr.c#31 (text+ko) ====

@@ -352,7 +352,7 @@
 
 	        if (curidx == endptidx) {
 		    return ((desc->bLength >= USB_ENDPOINT_DESCRIPTOR_SIZE) ? 
-			    ((void *)d) : NULL);
+			    ((void *)desc) : NULL);
 		}
 		curidx++;
 	    }


More information about the p4-projects mailing list