mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
crypto: amlogic - call finalize with bh disabled
[ Upstream commitdba6333429] Doing ipsec produces a spinlock recursion warning. This is due to not disabling BH during crypto completion function. Fixes:48fe583fe5("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
24857d87cc
commit
51939008ca
|
|
@ -265,7 +265,9 @@ static int meson_handle_cipher_request(struct crypto_engine *engine,
|
||||||
struct skcipher_request *breq = container_of(areq, struct skcipher_request, base);
|
struct skcipher_request *breq = container_of(areq, struct skcipher_request, base);
|
||||||
|
|
||||||
err = meson_cipher(breq);
|
err = meson_cipher(breq);
|
||||||
|
local_bh_disable();
|
||||||
crypto_finalize_skcipher_request(engine, breq, err);
|
crypto_finalize_skcipher_request(engine, breq, err);
|
||||||
|
local_bh_enable();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user