aboutsummaryrefslogtreecommitdiffstats
path: root/module/os
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2020-05-19 19:45:25 -0400
committerGitHub <[email protected]>2020-05-19 16:45:25 -0700
commit7b0e39030c6b887f9e9e158f3a312dbbeb127e33 (patch)
tree9da5e086f13189ba866d98405789cbb65273f69b /module/os
parent7cd723e685a83b0d5ae5e196bb90202c630fc571 (diff)
freebsd: Correct the order of arguments to copyin() for Q_SETQUOTA
Sponsored by: DARPA External-issue: https://reviews.freebsd.org/D24656 FreeBSD-commit: freebsd/freebsd@a431c095d32df45a31faad8382b9bc712480e27e Authored by: jhb <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Ported-by: Ryan Moeller <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #10344
Diffstat (limited to 'module/os')
-rw-r--r--module/os/freebsd/zfs/zfs_vfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/os/freebsd/zfs/zfs_vfsops.c b/module/os/freebsd/zfs/zfs_vfsops.c
index d6f7fc11e..246d406d1 100644
--- a/module/os/freebsd/zfs/zfs_vfsops.c
+++ b/module/os/freebsd/zfs/zfs_vfsops.c
@@ -352,7 +352,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));