projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98bd5c5
)
Btrfs: fix incorrect freeing in scrub_stripe
author
Tsutomu Itoh
<t-itoh@jp.fujitsu.com>
Fri, 9 Jan 2015 08:37:52 +0000
(17:37 +0900)
committer
Chris Mason
<clm@fb.com>
Mon, 19 Jan 2015 21:05:44 +0000
(13:05 -0800)
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>
fs/btrfs/scrub.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/scrub.c
b/fs/btrfs/scrub.c
index
9e1569f
..
2f0fbc3
100644
(file)
--- 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(p
p
ath);
+ btrfs_free_path(path);
return -ENOMEM;
}