Skip to content

Commit

Permalink
Btrfs: fix uninit variable in clone ioctl
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
masoncl committed Apr 13, 2015
1 parent ccccf3d commit de249e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -3205,7 +3205,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
Expand Down

0 comments on commit de249e6

Please sign in to comment.