Author: hselasky
Date: Mon Jun 16 14:02:14 2014
New Revision: 267543
URL: http://svnweb.freebsd.org/changeset/base/267543

Log:
  Fix destruction of character devices by passing correct pointer to
  kernel in IOCTL request.
  
  Submitted by: Andrey Zholos <[email protected]>

Modified:
  head/lib/libcuse/cuse_lib.c

Modified: head/lib/libcuse/cuse_lib.c
==============================================================================
--- head/lib/libcuse/cuse_lib.c Mon Jun 16 13:05:07 2014        (r267542)
+++ head/lib/libcuse/cuse_lib.c Mon Jun 16 14:02:14 2014        (r267543)
@@ -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;
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to