mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 13:58:30 -04:00
hidraw: Make HIDIOCGRDESCSIZE ioctl return report descriptor size
defined by hardware rather than cached one to match HIDIOCGRDESC ioctl.
This fixes errors reported by hid-tools being run against /dev/hidraw#
device node belonging to driver which overloads report descriptor.
MFC after: 1 week
(cherry picked from commit f988d7fa05)
This commit is contained in:
parent
ea10694336
commit
9262a9ce06
1 changed files with 1 additions and 1 deletions
|
|
@ -703,7 +703,7 @@ hidraw_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag,
|
|||
return (0);
|
||||
|
||||
case HIDIOCGRDESCSIZE:
|
||||
*(int *)addr = sc->sc_rdesc->len;
|
||||
*(int *)addr = sc->sc_hw->rdescsize;
|
||||
return (0);
|
||||
|
||||
case HIDIOCGRDESC:
|
||||
|
|
|
|||
Loading…
Reference in a new issue