Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jun 2014 14:02:14 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r267543 - head/lib/libcuse
Message-ID:  <201406161402.s5GE2EJa023483@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <aaz@q-fu.com>

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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406161402.s5GE2EJa023483>