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

Commit 379d6854 authored by Tsutomu Itoh's avatar Tsutomu Itoh Committed by Chris Mason
Browse files

Btrfs: fix incorrect freeing in scrub_stripe



The address that should be freed is not 'ppath' but 'path'.

Signed-off-by: default avatarTsutomu Itoh <t-itoh@jp.fujitsu.com>
Reviewed-by: default avatarMiao Xie <miaoxie@huawei.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 98bd5c54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3053,7 +3053,7 @@ static noinline_for_stack int scrub_stripe(struct scrub_ctx *sctx,

	ppath = btrfs_alloc_path();
	if (!ppath) {
		btrfs_free_path(ppath);
		btrfs_free_path(path);
		return -ENOMEM;
	}