summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>2015-01-09 17:37:52 +0900
committerChris Mason <clm@fb.com>2015-01-19 13:05:44 -0800
commit379d6854a2092e38b6e56a8067d922e31461b7e2 (patch)
tree462d8c7ff2f78b2e391707c4f949428774eb3528 /fs
parent98bd5c547ef2300f915fc1adce5b6f25c195d4d4 (diff)
downloadop-kernel-dev-379d6854a2092e38b6e56a8067d922e31461b7e2.zip
op-kernel-dev-379d6854a2092e38b6e56a8067d922e31461b7e2.tar.gz
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 9e1569f..2f0fbc3 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;
}
OpenPOWER on IntegriCloud