crypto: bcm - add error check in the ahash_hmac_init function
authorChen Ridong <chenridong@huawei.com>
Mon, 4 Nov 2024 12:17:45 +0000 (12:17 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Nov 2024 11:52:51 +0000 (19:52 +0800)
commit19630cf57233e845b6ac57c9c969a4888925467b
tree6a9d280df33c532a764105590e961a17f2252746
parentb64140c74e954f1db6eae5548ca3a1f41b6fad79
crypto: bcm - add error check in the ahash_hmac_init function

The ahash_init functions may return fails. The ahash_hmac_init should
not return ok when ahash_init returns error. For an example, ahash_init
will return -ENOMEM when allocation memory is error.

Fixes: 9d12ba86f818 ("crypto: brcm - Add Broadcom SPU driver")
Signed-off-by: Chen Ridong <chenridong@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/bcm/cipher.c