mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302381
|
@ -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…
Reference in a new issue