aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2009-06-22 21:09:52 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2009-06-22 21:09:52 +0000
commit599ce1c3babd8f542d34e29885f12017d4cf5901 (patch)
tree93fb61b7eeac431c17889c99c8271ec2cc7f0876 /sys
parentc1919f47a16df5ba84fb183c5aaf55b63e0faec6 (diff)
downloadsrc-599ce1c3babd8f542d34e29885f12017d4cf5901.tar.gz
src-599ce1c3babd8f542d34e29885f12017d4cf5901.zip
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/usb_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_generic.c b/sys/dev/usb/usb_generic.c
index 29a682a84799..90a055193ae4 100644
--- a/sys/dev/usb/usb_generic.c
+++ b/sys/dev/usb/usb_generic.c
@@ -1070,7 +1070,7 @@ ugen_fs_copy_in(struct usb_fifo *f, uint8_t ep_index)
if (error) {
return (error);
}
- if (length >= sizeof(*req)) {
+ if (length != sizeof(*req)) {
xfer->error = USB_ERR_INVAL;
goto complete;
}