mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
hidraw(4): Return length of written data from HIDIOCS* ioctls
To match Linux. MFC after: 3 days (cherry picked from commit 5ea0f1e63dbddc5452e2d85fcc03ba03a3d9cf84)
This commit is contained in:
parent
7545c8c116
commit
2880e12cc9
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