Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Apr 2013 07:01:17 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r249326 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <201304100701.r3A71HbW023816@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mm
Date: Wed Apr 10 07:01:17 2013
New Revision: 249326
URL: http://svnweb.freebsd.org/changeset/base/249326

Log:
  Cast to (void *)(uintptr_t) on copyout and copyin of zfs_iocparm_t.zfs_cmd
  
  MFC after:	9 days

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c	Wed Apr 10 06:21:39 2013	(r249325)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c	Wed Apr 10 07:01:17 2013	(r249326)
@@ -5807,7 +5807,7 @@ zfsdev_ioctl(struct cdev *dev, u_long zc
 			error = SET_ERROR(EFAULT);
 			goto out;
 		}
-		error = ddi_copyin((void *)zc_iocparm->zfs_cmd, zc,
+		error = ddi_copyin((void *)(uintptr_t)zc_iocparm->zfs_cmd, zc,
 		    sizeof(zfs_cmd_t), flag);
 		if (error != 0) {
 			error = SET_ERROR(EFAULT);
@@ -5948,7 +5948,7 @@ out:
 		error = SET_ERROR(EFAULT);
 #else
 	if (newioc) {
-		rc = ddi_copyout(zc, (void *)zc_iocparm->zfs_cmd,
+		rc = ddi_copyout(zc, (void *)(uintptr_t)zc_iocparm->zfs_cmd,
 		    sizeof (zfs_cmd_t), flag);
 		if (error == 0 && rc != 0)
 			error = SET_ERROR(EFAULT);



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