svn commit: r361220 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
John Baldwin
jhb at FreeBSD.org
Mon May 18 16:47:45 UTC 2020
Author: jhb
Date: Mon May 18 16:47:44 2020
New Revision: 361220
URL: https://svnweb.freebsd.org/changeset/base/361220
Log:
Correct the order of arguments to copyin() for Q_SETQUOTA.
MFC after: 2 weeks
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D24656
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c Mon May 18 16:33:32 2020 (r361219)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c Mon May 18 16:47:44 2020 (r361220)
@@ -267,7 +267,7 @@ zfs_quotactl(vfs_t *vfsp, int cmds, uid_t id, void *ar
vfs_unbusy(vfsp);
break;
case Q_SETQUOTA:
- error = copyin(&dqblk, arg, sizeof(dqblk));
+ error = copyin(arg, &dqblk, sizeof(dqblk));
if (error == 0)
error = zfs_set_userquota(zfsvfs, quota_type,
"", id, dbtob(dqblk.dqb_bhardlimit));
More information about the svn-src-all
mailing list