crypto: sahara - don't sleep when in softirq
authorZhengchao Shao <shaozhengchao@huawei.com>
Mon, 25 Jul 2022 04:09:28 +0000 (12:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:25:41 +0000 (13:25 +0200)
commit25f13424737232d5ef5337916dac9fe303b5b0c6
treee25e7375655417a553dd23388cc913b3cbb4c9d9
parent2d285164fbe41a5f8bb1d46a18685b5c4c870870
crypto: sahara - don't sleep when in softirq

[ Upstream commit 108586eba094b318e6a831f977f4ddcc403a15da ]

Function of sahara_aes_crypt maybe could be called by function
of crypto_skcipher_encrypt during the rx softirq, so it is not
allowed to use mutex lock.

Fixes: c0c3c89ae347 ("crypto: sahara - replace tasklets with...")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/sahara.c