crypto: ccree: fix resource leak on error path
Quoted 1 line
Fix a small resource leak on the error path of cipher processing.
Would you like to add the tag “Fixes” to the commit message?
…
Quoted 1 line
+++
b/drivers/crypto/ccree/cc_cipher.c
…
Quoted 1 line
(quoted diff) +0
-0@@ -190,21 +198,19 @@ static int cc_cipher_init(struct crypto_tfm *tfm)
…
Review
Quoted 5 lines
(quoted diff) +4
-1- return rc; +out_key: + kfree(ctx_p->user.key); +out_shash: + crypto_free_shash(ctx_p->shash_tfm);
…
How do you think about to replace the prefix “out” by “free” in these labels?
Regards,
Markus