diff options
author | hselasky <hselasky@FreeBSD.org> | 2014-06-16 14:02:14 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2014-06-16 14:02:14 +0000 |
commit | 66fd9933dec86de8e5e6ff8a007ef0212816ae0a (patch) | |
tree | 1b3fed907a29659a409c50eff0c2261dd92cc7fc /lib | |
parent | 6f0acfd6e3c7a24775fee30864375a98e945310c (diff) | |
download | FreeBSD-src-66fd9933dec86de8e5e6ff8a007ef0212816ae0a.zip FreeBSD-src-66fd9933dec86de8e5e6ff8a007ef0212816ae0a.tar.gz |
Fix destruction of character devices by passing correct pointer to
kernel in IOCTL request.
Submitted by: Andrey Zholos <aaz@q-fu.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcuse/cuse_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcuse/cuse_lib.c b/lib/libcuse/cuse_lib.c index f518e11..9d8352f 100644 --- a/lib/libcuse/cuse_lib.c +++ b/lib/libcuse/cuse_lib.c @@ -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; |