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);
|
TAILQ_REMOVE(&h_cuse, cdev, entry);
|
||||||
cuse_unlock();
|
cuse_unlock();
|
||||||
|
|
||||||
error = ioctl(f_cuse, CUSE_IOCTL_DESTROY_DEV, cdev);
|
error = ioctl(f_cuse, CUSE_IOCTL_DESTROY_DEV, &cdev);
|
||||||
if (error)
|
if (error)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user