diff options
author | Andrew Thompson <thompsa@FreeBSD.org> | 2009-06-22 21:09:52 +0000 |
---|---|---|
committer | Andrew Thompson <thompsa@FreeBSD.org> | 2009-06-22 21:09:52 +0000 |
commit | 599ce1c3babd8f542d34e29885f12017d4cf5901 (patch) | |
tree | 93fb61b7eeac431c17889c99c8271ec2cc7f0876 /sys | |
parent | c1919f47a16df5ba84fb183c5aaf55b63e0faec6 (diff) | |
download | src-599ce1c3babd8f542d34e29885f12017d4cf5901.tar.gz src-599ce1c3babd8f542d34e29885f12017d4cf5901.zip |
Notes
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/usb_generic.c | 2 |
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; } |