Re: [PATCH 1/3] crypto: ccree: fix resource leak on error path

2020-06-21 Thread Markus Elfring
> Fix a small resource leak on the error path of cipher processing. Would you like to add the tag “Fixes” to the commit message? … > +++ b/drivers/crypto/ccree/cc_cipher.c … > @@ -190,21 +198,19 @@ static int cc_cipher_init(struct crypto_tfm *tfm) … > - return rc; > +out_key: > + kfree(

[PATCH 1/3] crypto: ccree: fix resource leak on error path

2020-06-21 Thread Gilad Ben-Yossef
Fix a small resource leak on the error path of cipher processing. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/ccree/cc_cipher.c | 30 ++ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/drivers/crypto/ccree/cc_cipher.c b/drivers/crypto/ccree/cc_c