projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b41b51
)
bcache: Fix a minor memory leak on device teardown
author
Kent Overstreet
<koverstreet@google.com>
Fri, 5 Apr 2013 20:46:13 +0000
(13:46 -0700)
committer
Kent Overstreet
<koverstreet@google.com>
Mon, 8 Apr 2013 20:33:48 +0000
(13:33 -0700)
Reported-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Kent Overstreet <koverstreet@google.com>
drivers/md/bcache/super.c
patch
|
blob
|
history
diff --git
a/drivers/md/bcache/super.c
b/drivers/md/bcache/super.c
index f47ecb5cb318be7f830691b406b6cddd3d348a91..5fa3cd2d9ff0ea3c6470a0fdeed98398c480ee47 100644
(file)
--- a/
drivers/md/bcache/super.c
+++ b/
drivers/md/bcache/super.c
@@
-64,9
+64,11
@@
struct workqueue_struct *bcache_wq;
static void bio_split_pool_free(struct bio_split_pool *p)
{
+ if (p->bio_split_hook)
+ mempool_destroy(p->bio_split_hook);
+
if (p->bio_split)
bioset_free(p->bio_split);
-
}
static int bio_split_pool_init(struct bio_split_pool *p)