Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 2020 21:41:14 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r364843 - in stable: 11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs 12/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Message-ID:  <202008262141.07QLfEsr090156@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Wed Aug 26 21:41:14 2020
New Revision: 364843
URL: https://svnweb.freebsd.org/changeset/base/364843

Log:
  MFC 361220: Correct the order of arguments to copyin() for Q_SETQUOTA.

Modified:
  stable/12/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
Directory Properties:
  stable/12/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/12/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c
==============================================================================
--- stable/12/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c	Wed Aug 26 21:35:28 2020	(r364842)
+++ stable/12/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c	Wed Aug 26 21:41:14 2020	(r364843)
@@ -268,7 +268,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));



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