Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: amlogic - call finalize with bh disabled

Doing ipsec produces a spinlock recursion warning.
This is due to not disabling BH during crypto completion function.

Fixes: 48fe583fe541 ("crypto: amlogic - Add crypto accelerator for amlogic GXL")
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Corentin Labbe and committed by
Herbert Xu
dba63334 f75a749b

+2
+2
drivers/crypto/amlogic/amlogic-gxl-cipher.c
··· 265 265 struct skcipher_request *breq = container_of(areq, struct skcipher_request, base); 266 266 267 267 err = meson_cipher(breq); 268 + local_bh_disable(); 268 269 crypto_finalize_skcipher_request(engine, breq, err); 270 + local_bh_enable(); 269 271 270 272 return 0; 271 273 }