svn commit: r294806 - vendor-sys/illumos/dist/uts/common/fs/zfs
Alexander Motin
mav at FreeBSD.org
Tue Jan 26 12:51:43 UTC 2016
Author: mav
Date: Tue Jan 26 12:51:41 2016
New Revision: 294806
URL: https://svnweb.freebsd.org/changeset/base/294806
Log:
6388 Failure of userland copy should return EFAULT
Reviewed by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed by: Matthew Ahrens <mahrens at delphix.com>
Reviewed by: Dan Kimmel <dan.kimmel at delphix.com>
Approved by: Robert Mustacchi <rm at joyent.com>
Author: Richard Yao <ryao at gentoo.org>
illumos/illumos-gate at c71c00bbe8a9cdc7e3f4048b751f48e80441d506
Modified:
vendor-sys/illumos/dist/uts/common/fs/zfs/zfs_ioctl.c
Modified: vendor-sys/illumos/dist/uts/common/fs/zfs/zfs_ioctl.c
==============================================================================
--- vendor-sys/illumos/dist/uts/common/fs/zfs/zfs_ioctl.c Tue Jan 26 12:50:14 2016 (r294805)
+++ vendor-sys/illumos/dist/uts/common/fs/zfs/zfs_ioctl.c Tue Jan 26 12:51:41 2016 (r294806)
@@ -1303,7 +1303,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) {
More information about the svn-src-all
mailing list