Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ef74790 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcache: Fix a minor memory leak on device teardown

parent 7b41b51a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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)