Skip to content

Commit

Permalink
Btrfs: fix incorrect freeing in scrub_stripe
Browse files Browse the repository at this point in the history
The address that should be freed is not 'ppath' but 'path'.

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Reviewed-by: Miao Xie <miaoxie@huawei.com>
Signed-off-by: Chris Mason <clm@fb.com>
  • Loading branch information
Tsutomu Itoh authored and Chris Mason committed Jan 19, 2015
1 parent 98bd5c5 commit 379d685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/scrub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 379d685

Please sign in to comment.