mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
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:
parent
11b569f7cb
commit
8958a2f085
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=267543
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue