md: Set tfm NULL if crypto mode is not available
Currently, dm-req-crypt module destroys dm-req-crypt device if
crypto algorithm is not available. However, it does not set tfm to
NULL which is checked in destructor before releasing tfm. Adding a
NULL assignment to tfm so that destructor does not try to deallocate
tfm which was not allocated.
Change-Id: Id1bfcf45b7b1fe58db0147ec7c27aa585e8d970e
Signed-off-by:
Dinesh K Garg <dineshg@codeaurora.org>
Loading
Please register or sign in to comment