PERFORCE change 159497 for review

Hans Petter Selasky hselasky at FreeBSD.org
Fri Mar 20 00:43:02 PDT 2009


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

Change 159497 by hselasky at hselasky_laptop001 on 2009/03/20 07:42:17

	
	USB generic:
	- Allow for smaller buffer size.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_generic.c#8 edit

Differences ...

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

@@ -1618,8 +1618,8 @@
 {
 	usb2_frlength_t t;
 
-	if (*(int *)addr < 1024)
-		t = 1024;
+	if (*(int *)addr < 0)
+		t = 0;		/* use "wMaxPacketSize" */
 	else if (*(int *)addr < (256 * 1024))
 		t = *(int *)addr;
 	else


More information about the p4-projects mailing list