From 7b0e39030c6b887f9e9e158f3a312dbbeb127e33 Mon Sep 17 00:00:00 2001 From: Ryan Moeller Date: Tue, 19 May 2020 19:45:25 -0400 Subject: [PATCH] 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 Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Ported-by: Ryan Moeller Signed-off-by: Ryan Moeller Closes #10344 --- module/os/freebsd/zfs/zfs_vfsops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));