diff options
author | John Baldwin <jhb@FreeBSD.org> | 2020-05-18 16:47:44 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2020-05-18 16:47:44 +0000 |
commit | 2c213c2e75fd00906840c4509d877475e6b8e0dc (patch) | |
tree | 773da193427933f2ce14f482749b9752ef7ca8a3 /sys/cddl | |
parent | eb95dbfa4fa0c7c2a3419812d5c18a2740364256 (diff) | |
download | src-2c213c2e75fd00906840c4509d877475e6b8e0dc.tar.gz src-2c213c2e75fd00906840c4509d877475e6b8e0dc.zip |
Correct the order of arguments to copyin() for Q_SETQUOTA.
MFC after: 2 weeks
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D24656
Notes
Notes:
svn path=/head/; revision=361220
Diffstat (limited to 'sys/cddl')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c index 14b61ec8e92d..2d67f1bab154 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c @@ -267,7 +267,7 @@ zfs_quotactl(vfs_t *vfsp, int cmds, uid_t id, void *arg) 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)); |