crypto: sun8i-ss - call finalize with bh disabled
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 21 Feb 2022 12:08:29 +0000 (12:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:40:01 +0000 (14:40 +0200)
commitbf4814d58b1b1589ec205ffb180f365023d9b4c6
treebaa995da70982854153342561406f930848bc6b9
parenta4067ccb97e5eb7cf7da5132139d7678ab97cde0
crypto: sun8i-ss - call finalize with bh disabled

[ Upstream commit b169b3766242b6f3336e24a6c8ee1522978b57a7 ]

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

Fixes: f08fcced6d00 ("crypto: allwinner - Add sun8i-ss cryptographic offloader")
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>
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c
drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c