OSDN Git Service

Merge tag 'for-5.8-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
[tomoyo/tomoyo-test1.git] / fs / btrfs / send.c
index 0f37660..d9813a5 100644 (file)
@@ -7126,13 +7126,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;