projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adbe7fb
)
Btrfs: fix memory leak for name_cache in send/receive
author
Alexander Block
<ablock84@googlemail.com>
Sat, 28 Jul 2012 12:13:35 +0000
(14:13 +0200)
committer
Chris Mason
<chris.mason@fusionio.com>
Mon, 1 Oct 2012 19:18:51 +0000
(15:18 -0400)
When everything is done, name_cache_free is called which however
forgot to call kfree on the cache entries.
Signed-off-by: Alexander Block <ablock84@googlemail.com>
fs/btrfs/send.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/send.c
b/fs/btrfs/send.c
index 68b2543e5d6c5639a4263bc82c9ed06e953b2b1f..9cee678c0fb654f923241d8c1e95393cf0ac68ab 100644
(file)
--- a/
fs/btrfs/send.c
+++ b/
fs/btrfs/send.c
@@
-1822,6
+1822,7
@@
static void name_cache_free(struct send_ctx *sctx)
list_for_each_entry_safe(nce, tmp, &sctx->name_cache_list, list) {
name_cache_delete(sctx, nce);
+ kfree(nce);
}
}