diff options
author | mav <mav@FreeBSD.org> | 2011-08-09 08:11:26 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2011-08-09 08:11:26 +0000 |
commit | 95c58b7fb18fe9d1c2f2cfcb59238e78388050f6 (patch) | |
tree | 2e84d6cd213a6ccda581944ed3588f330435d135 /sys/dev/usb/usb_request.c | |
parent | bcd1b0a0889673df5893fc9aa376a4398a63eaff (diff) | |
download | FreeBSD-src-95c58b7fb18fe9d1c2f2cfcb59238e78388050f6.zip FreeBSD-src-95c58b7fb18fe9d1c2f2cfcb59238e78388050f6.tar.gz |
Do not block zero report ID. It is correct value for devices with single
ID. This fixes USB_SET_IMMED call (synchronous operation) of the uhid(4)
driver on devices with single report ID.
Reviewed by: hselasky
Approved by: re (kib)
MFC after: 1 week
Diffstat (limited to 'sys/dev/usb/usb_request.c')
-rw-r--r-- | sys/dev/usb/usb_request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_request.c b/sys/dev/usb/usb_request.c index bb5e0da..fc47bbf 100644 --- a/sys/dev/usb/usb_request.c +++ b/sys/dev/usb/usb_request.c @@ -1769,7 +1769,7 @@ usbd_req_get_report(struct usb_device *udev, struct mtx *mtx, void *data, struct usb_interface *iface = usbd_get_iface(udev, iface_index); struct usb_device_request req; - if ((iface == NULL) || (iface->idesc == NULL) || (id == 0)) { + if ((iface == NULL) || (iface->idesc == NULL)) { return (USB_ERR_INVAL); } DPRINTFN(5, "len=%d\n", len); |