aboutsummaryrefslogtreecommitdiff
path: root/fs/ext2
diff options
context:
space:
mode:
authorChristoph Hellwig2020-02-26 17:30:31 -0800
committerDarrick J. Wong2020-03-02 20:55:52 -0800
commit2282a9e65177b425aaab4d8228f98f5c09fc778a (patch)
treeb78179d9a41eecbe80df4ad0aeff7e136da23be5 /fs/ext2
parent6cc4f4fff10d38e95994e740f1b1d260c6fe8506 (diff)
xfs: use strndup_user in XFS_IOC_ATTRMULTI_BY_HANDLE
Simplify the user copy code by using strndup_user. This means that we now do one memory allocation per operation instead of one per ioctl, but memory allocations are cheap compared to the actual file system operations. Also the error for an invalid path is now EINVAL or EFAULT instead of the previous odd and undocumented ERANGE. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Chandan Rajendra <chandanrlinux@gmail.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/ext2')
0 files changed, 0 insertions, 0 deletions