summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>2015-01-09 11:37:52 +0300
committerChris Mason <clm@fb.com>2015-01-20 00:05:44 +0300
commit379d6854a2092e38b6e56a8067d922e31461b7e2 (patch)
tree462d8c7ff2f78b2e391707c4f949428774eb3528 /fs
parent98bd5c547ef2300f915fc1adce5b6f25c195d4d4 (diff)
downloadlinux-379d6854a2092e38b6e56a8067d922e31461b7e2.tar.xz
Btrfs: fix incorrect freeing in scrub_stripe
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/scrub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c
index 9e1569ffbf6e..2f0fbc374e87 100644
--- a/fs/btrfs/scrub.c
+++ b/fs/btrfs/scrub.c
@@ -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;
}