Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9061e21 authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: fix uninit compiler warning in cow_file_range_nocow



The extent_type variable was exposed uninit via a goto.  It should be
impossible to trigger because it is protected by a check on another
variable, but this makes sure.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 82d339d9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1023,6 +1023,7 @@ static noinline int run_delalloc_nocow(struct inode *inode,

		if (found_key.offset > cur_offset) {
			extent_end = found_key.offset;
			extent_type = 0;
			goto out_check;
		}