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

Commit 94cebccd authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "md: Null check allocated mem pools before releasing"

parents 435903c1 977131da
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1041,7 +1041,10 @@ static void req_crypt_dtr(struct dm_target *ti)
		destroy_workqueue(req_crypt_queue);
		req_crypt_queue = NULL;
	}
	if (_req_dm_scatterlist_pool)
		kmem_cache_destroy(_req_dm_scatterlist_pool);

	if (_req_crypt_io_pool)
		kmem_cache_destroy(_req_crypt_io_pool);

	if (dev) {