diff options
author | Chris Mason <clm@fb.com> | 2015-04-11 08:09:06 -0400 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2015-04-13 10:03:58 -0400 |
commit | de249e66a73d696666281cd812087979c6fae552 (patch) | |
tree | 86029ddde6c8aff5fad962e0e2b39a5eabe7b1da /fs | |
parent | ccccf3d67294714af2d72a6fd6fd7d73b01c9329 (diff) |
Btrfs: fix uninit variable in clone ioctl
Commit 0d97a64e0 creates a new variable but doesn't always set it up.
This puts it back to the original method (key.offset + 1) for the cases
not covered by Filipe's new logic.
Signed-off-by: Chris Mason <clm@fb.com>
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 97b782ff92bb..ca0736ce25a0 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c | |||
@@ -3205,7 +3205,7 @@ static int btrfs_clone(struct inode *src, struct inode *inode, | |||
3205 | key.offset = off; | 3205 | key.offset = off; |
3206 | 3206 | ||
3207 | while (1) { | 3207 | while (1) { |
3208 | u64 next_key_min_offset; | 3208 | u64 next_key_min_offset = key.offset + 1; |
3209 | 3209 | ||
3210 | /* | 3210 | /* |
3211 | * note the key will change type as we walk through the | 3211 | * note the key will change type as we walk through the |