linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] fixes and update to essiv support
@ 2020-06-21  9:07 Gilad Ben-Yossef
  2020-06-21  9:07 ` [PATCH 1/3] crypto: ccree: fix resource leak on error path Gilad Ben-Yossef
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Gilad Ben-Yossef @ 2020-06-21  9:07 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller; +Cc: Ofir Drang, linux-crypto, linux-kernel

Small fixes and adapt essiv support to the new template format

Gilad Ben-Yossef (3):
  crypto: ccree: fix resource leak on error path
  crypto: ccree: adapt ccree essiv supprot to kcapi
  crypto: ccree: remove unused field

 drivers/crypto/ccree/cc_cipher.c | 149 ++++++++++++++++++++++---------
 1 file changed, 108 insertions(+), 41 deletions(-)

-- 
2.27.0


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [PATCH 1/3] crypto: ccree: fix resource leak on error path
@ 2020-06-21  9:28 Markus Elfring
  0 siblings, 0 replies; 5+ messages in thread
From: Markus Elfring @ 2020-06-21  9:28 UTC (permalink / raw)
  To: Gilad Ben-Yossef, linux-crypto
  Cc: linux-kernel, David S. Miller, Herbert Xu, Ofir Drang

> 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(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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-06-21  9:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-21  9:07 [PATCH 0/3] fixes and update to essiv support Gilad Ben-Yossef
2020-06-21  9:07 ` [PATCH 1/3] crypto: ccree: fix resource leak on error path Gilad Ben-Yossef
2020-06-21  9:07 ` [PATCH 2/3] crypto: ccree: adapt ccree essiv supprot to kcapi Gilad Ben-Yossef
2020-06-21  9:07 ` [PATCH 3/3] crypto: ccree: remove unused field Gilad Ben-Yossef
2020-06-21  9:28 [PATCH 1/3] crypto: ccree: fix resource leak on error path Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).