diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2020-02-19 09:35:32 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-05-09 15:59:10 -0400 |
commit | 502fd722fe1ed0133d1108bff1d5911f46de6641 (patch) | |
tree | 274282a91bcc759e673bbec6946ca1b8c43d9cea /fs/btrfs/send.c | |
parent | f06d3a7e6ebe4faf94cf0be1b25ae6df33620d88 (diff) | |
download | linux-502fd722fe1ed0133d1108bff1d5911f46de6641.tar.bz2 |
btrfs_ioctl_send(): don't bother with access_ok()
we do copy_from_user() on that range anyway
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/btrfs/send.c')
-rw-r--r-- | fs/btrfs/send.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index c5f41bd86765..6a92ecf9eaa2 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -7065,13 +7065,6 @@ long btrfs_ioctl_send(struct file *mnt_file, struct btrfs_ioctl_send_args *arg) goto out; } - if (!access_ok(arg->clone_sources, - sizeof(*arg->clone_sources) * - arg->clone_sources_count)) { - ret = -EFAULT; - goto out; - } - if (arg->flags & ~BTRFS_SEND_FLAG_MASK) { ret = -EINVAL; goto out; |