1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00

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
This commit is contained in:
Alexander Motin 2011-08-09 08:11:26 +00:00
parent a2ca3bc171
commit 477a63a864
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=224728

View File

@ -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);