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:
Hans Petter Selasky 2016-07-06 22:21:22 +00:00
parent 8a0ddeb828
commit 010638ab22
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302381

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);
/*