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 10:35:23 +0000 (12:35 +0200)
commite0b4ebf598345beec6b6916b2921bde4b05902ae
tree9343009fa8a81aec7053991bf3cba2dfc8101ab7
parent8484023b5763e1c981321b415fae8b83a8fe257c
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