diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2014-06-16 14:02:14 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2014-06-16 14:02:14 +0000 |
commit | 8958a2f0856cd959f3eef553769b25b2b72ce8f0 (patch) | |
tree | 1b3fed907a29659a409c50eff0c2261dd92cc7fc /lib/libcuse | |
parent | 11b569f7cbcf9635b0559996a6d9f3f7240cc868 (diff) | |
download | src-test-8958a2f0856cd959f3eef553769b25b2b72ce8f0.tar.gz src-test-8958a2f0856cd959f3eef553769b25b2b72ce8f0.zip |
Fix destruction of character devices by passing correct pointer to
kernel in IOCTL request.
Submitted by: Andrey Zholos <aaz@q-fu.com>
Notes
Notes:
svn path=/head/; revision=267543
Diffstat (limited to 'lib/libcuse')
-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 f518e11d78f3b..9d8352f81df1e 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; |