diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index d94bef5179fc..3fe15e435b5c 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -1597,7 +1597,7 @@ static noinline long btrfs_ioctl_clone(struct file *file, unsigned long srcfd, | |||
1597 | } | 1597 | } |
1598 | btrfs_release_path(root, path); | 1598 | btrfs_release_path(root, path); |
1599 | 1599 | ||
1600 | if (key.offset + datal < off || | 1600 | if (key.offset + datal <= off || |
1601 | key.offset >= off+len) | 1601 | key.offset >= off+len) |
1602 | goto next; | 1602 | goto next; |
1603 | 1603 | ||