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

Commit 69a85bd8 authored by Josef Bacik's avatar Josef Bacik
Browse files

Btrfs: don't null pointer deref on abort



I'm sorry, theres no excuse for this sort of work.  We need to use
root->leafsize since eb may be NULL.  Thanks,

Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
parent 03b71c6c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3808,7 +3808,7 @@ static int btrfs_destroy_marked_extents(struct btrfs_root *root,
		while (start <= end) {
			eb = btrfs_find_tree_block(root, start,
						   root->leafsize);
			start += eb->len;
			start += root->leafsize;
			if (!eb)
				continue;
			wait_on_extent_buffer_writeback(eb);