mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
xfs: remove incorrect error negation in attr_multi ioctl
xfs_compat_attrmulti_by_handle() calls memdup_user() which returns a negative error code. The error code is negated by the caller and thus incorrectly converted to a positive error code. Remove the error negation such that the negative error is passed correctly back up to userspace. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
parent
97bf6af1f9
commit
4d949021aa
1 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,7 @@ xfs_compat_attrmulti_by_handle(
|
|||
|
||||
ops = memdup_user(compat_ptr(am_hreq.ops), size);
|
||||
if (IS_ERR(ops)) {
|
||||
error = -PTR_ERR(ops);
|
||||
error = PTR_ERR(ops);
|
||||
goto out_dput;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue