Author: mav
Date: Tue Jan 26 12:52:16 2016
New Revision: 294807
URL: https://svnweb.freebsd.org/changeset/base/294807

Log:
  MFV r294806: 6388 Failure of userland copy should return EFAULT
  
  Reviewed by: Brian Behlendorf <behlendo...@llnl.gov>
  Reviewed by: Matthew Ahrens <mahr...@delphix.com>
  Reviewed by: Dan Kimmel <dan.kim...@delphix.com>
  Approved by: Robert Mustacchi <r...@joyent.com>
  Author: Richard Yao <r...@gentoo.org>
  
  illumos/illumos-gate@c71c00bbe8a9cdc7e3f4048b751f48e80441d506

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
Directory Properties:
  head/sys/cddl/contrib/opensolaris/   (props changed)

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     Tue Jan 
26 12:51:41 2016        (r294806)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c     Tue Jan 
26 12:52:16 2016        (r294807)
@@ -1339,7 +1339,7 @@ get_nvlist(uint64_t nvl, uint64_t size, 
        if ((error = ddi_copyin((void *)(uintptr_t)nvl, packed, size,
            iflag)) != 0) {
                kmem_free(packed, size);
-               return (error);
+               return (SET_ERROR(EFAULT));
        }
 
        if ((error = nvlist_unpack(packed, size, &list, 0)) != 0) {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to