Handle IOC_VOID special case of passing an integer IOCTL argument through CUSE.

Submitted by:	Vladimir Kondratyev <wulf@cicgroup.ru>
Approved by:	re (gjb)
This commit is contained in:
hselasky 2016-07-06 22:21:22 +00:00
parent 90a93ba936
commit fe840b6ea6

View File

@ -1656,7 +1656,7 @@ cuse_client_ioctl(struct cdev *dev, unsigned long cmd,
cuse_cmd_lock(pccmd);
if (cmd & IOC_IN)
if (cmd & (IOC_IN | IOC_VOID))
memcpy(pcc->ioctl_buffer, data, len);
/*