svn commit: r194659 - head/sys/dev/usb
Andrew Thompson
thompsa at FreeBSD.org
Mon Jun 22 21:09:53 UTC 2009
Author: thompsa
Date: Mon Jun 22 21:09:52 2009
New Revision: 194659
URL: http://svn.freebsd.org/changeset/base/194659
Log:
Fix length check for ugen control transfer.
Submitted by: Sylvestre Gallon, HPS
Modified:
head/sys/dev/usb/usb_generic.c
Modified: head/sys/dev/usb/usb_generic.c
==============================================================================
--- head/sys/dev/usb/usb_generic.c Mon Jun 22 20:58:56 2009 (r194658)
+++ head/sys/dev/usb/usb_generic.c Mon Jun 22 21:09:52 2009 (r194659)
@@ -1070,7 +1070,7 @@ ugen_fs_copy_in(struct usb_fifo *f, uint
if (error) {
return (error);
}
- if (length >= sizeof(*req)) {
+ if (length != sizeof(*req)) {
xfer->error = USB_ERR_INVAL;
goto complete;
}
More information about the svn-src-all
mailing list