Fix destruction of character devices by passing correct pointer to

kernel in IOCTL request.

Submitted by:	Andrey Zholos <aaz@q-fu.com>
This commit is contained in:
Hans Petter Selasky 2014-06-16 14:02:14 +00:00
parent 11b569f7cb
commit 8958a2f085
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267543

View File

@ -425,7 +425,7 @@ cuse_dev_destroy(struct cuse_dev *cdev)
TAILQ_REMOVE(&h_cuse, cdev, entry);
cuse_unlock();
error = ioctl(f_cuse, CUSE_IOCTL_DESTROY_DEV, cdev);
error = ioctl(f_cuse, CUSE_IOCTL_DESTROY_DEV, &cdev);
if (error)
return;