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

crypto: gemini - call finalize with bh disabled

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

Fixes: 46c5338db7bd45b2 ("crypto: sl3516 - Add sl3516 crypto engine")
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
7f224211 dba63334

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