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:
parent
8a0ddeb828
commit
010638ab22
@ -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);
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user