aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/lrw.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/lrw.c')
-rw-r--r--crypto/lrw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/lrw.c b/crypto/lrw.c
index 358f80be2bf9..fca3246a953f 100644
--- a/crypto/lrw.c
+++ b/crypto/lrw.c
@@ -220,6 +220,7 @@ static int init_tfm(struct crypto_tfm *tfm)
220 220
221 if (crypto_cipher_blocksize(cipher) != 16) { 221 if (crypto_cipher_blocksize(cipher) != 16) {
222 *flags |= CRYPTO_TFM_RES_BAD_BLOCK_LEN; 222 *flags |= CRYPTO_TFM_RES_BAD_BLOCK_LEN;
223 crypto_free_cipher(cipher);
223 return -EINVAL; 224 return -EINVAL;
224 } 225 }
225 226