提交 8ef74790 编写于 作者: K Kent Overstreet

bcache: Fix a minor memory leak on device teardown

Reported-by: NMike Snitzer <snitzer@redhat.com>
Signed-off-by: NKent Overstreet <koverstreet@google.com>
上级 7b41b51a
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册