Skip to content

Commit

Permalink
Correct the order of arguments to copyin() for Q_SETQUOTA.
Browse files Browse the repository at this point in the history
MFC after:	2 weeks
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D24656
  • Loading branch information
bsdjhb committed May 18, 2020
1 parent 8722af6 commit a431c09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit a431c09

Please sign in to comment.