Skip to content

Commit 26df39a

Browse files
josefbacikkdave
authored andcommitted
btrfs: fix uninitialized variable in find_first_clear_extent_bit
This was caught when syncing extent-io-tree.c into btrfs-progs. This however isn't really a problem, the only way next would be uninitialized is if we found the range we were looking for, and in this case we don't care about next. However it's a compile error, so fix it up. Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent d7c9e1b commit 26df39a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/extent-io-tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,7 @@ void find_first_clear_extent_bit(struct extent_io_tree *tree, u64 start,
14251425
u64 *start_ret, u64 *end_ret, u32 bits)
14261426
{
14271427
struct extent_state *state;
1428-
struct extent_state *prev = NULL, *next;
1428+
struct extent_state *prev = NULL, *next = NULL;
14291429

14301430
spin_lock(&tree->lock);
14311431

0 commit comments

Comments
 (0)