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

Commit 977131da authored by Dinesh K Garg's avatar Dinesh K Garg
Browse files

md: Null check allocated mem pools before releasing



If there is any error during construction of dm-req-crypt based device,
it calls for dm-req-crypt destruction. In destructor, it calls for
kmem_cache_destroy without checking if corresponding pools were allocated.
This causes device to crash. Adding null checks to ensure mem pools are
released only if those were allocated.

Change-Id: I07da1635cc99696b231aeace834855613862213f
Signed-off-by: default avatarDinesh K Garg <dineshg@codeaurora.org>
parent c049a981
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment