PERFORCE change 141477 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Sun May 11 20:55:50 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=141477
Change 141477 by hselasky at hselasky_laptop001 on 2008/05/11 20:55:05
EHCI: Small correction. Only affects High Speed Isochronous transfers.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb/ehci.c#78 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb/ehci.c#78 (text+ko) ====
@@ -2071,8 +2071,14 @@
len = EHCI_ITD_GET_LEN(status);
if (*plen >= len) {
- len = *plen - len;
+ /*
+ * The length is valid. NOTE: The complete
+ * length is written back into the status
+ * field, and not the remainder like with
+ * other transfer descriptor types.
+ */
} else {
+ /* Invalid length - truncate */
len = 0;
}
More information about the p4-projects
mailing list