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
@ -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…
x
Reference in New Issue
Block a user