mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
hidraw(4): Return length of written data from HIDIOCS* ioctls
To match Linux. MFC after: 3 days
This commit is contained in:
parent
fd6690e2d5
commit
5ea0f1e63d
1 changed files with 4 additions and 1 deletions
|
|
@ -885,7 +885,10 @@ hidraw_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag,
|
|||
default:
|
||||
panic("Invalid report type");
|
||||
}
|
||||
return (hid_set_report(sc->sc_dev, addr, len, reptype, id));
|
||||
error = hid_set_report(sc->sc_dev, addr, len, reptype, id);
|
||||
if (error == 0)
|
||||
td->td_retval[0] = IOCPARM_LEN(cmd);
|
||||
return (error);
|
||||
|
||||
case HIDIOCGFEATURE(0):
|
||||
case HIDIOCGINPUT(0):
|
||||
|
|
|
|||
Loading…
Reference in a new issue