Commit 1e24644a authored by Chris Mason's avatar Chris Mason Committed by Greg Kroah-Hartman

Btrfs: fix uninit variable in clone ioctl

commit de249e66 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: default avatarChris Mason <clm@fb.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 64b02777
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment