On Mon, Nov 04, 2024 at 12:17:45PM +0000, Chen Ridong wrote: > From: Chen Ridong <chenridong@xxxxxxxxxx> > > 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@xxxxxxxxxx> > --- > drivers/crypto/bcm/cipher.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt