diff options
author | Chen Ridong <chenridong@huawei.com> | 2024-11-04 15:17:45 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2024-11-15 14:52:51 +0300 |
commit | 19630cf57233e845b6ac57c9c969a4888925467b (patch) | |
tree | 6a9d280df33c532a764105590e961a17f2252746 /lib/crypto/mpi/mpi-bit.c | |
parent | b64140c74e954f1db6eae5548ca3a1f41b6fad79 (diff) | |
download | linux-19630cf57233e845b6ac57c9c969a4888925467b.tar.xz |
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>
Diffstat (limited to 'lib/crypto/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions