diff options
author | Chris Mason <clm@fb.com> | 2015-04-11 05:09:06 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-22 17:03:37 -0700 |
commit | 1e24644ae5af0b11a9153c0b6d981c215d7c3585 (patch) | |
tree | de8086fa47a948558edc10f0608627c742394af4 | |
parent | 64b02777ad421be063075f483aa50ec54e729333 (diff) |
Btrfs: fix uninit variable in clone ioctl
commit de249e66a73d696666281cd812087979c6fae552 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 d79c599240a7..64e8fb639f72 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -3206,7 +3206,7 @@ static int btrfs_clone(struct inode *src, struct inode *inode, key.offset = off; while (1) { - u64 next_key_min_offset; + u64 next_key_min_offset = key.offset + 1; /* * note the key will change type as we walk through the |