crypto: sahara - don't sleep when in softirq
authorZhengchao Shao <shaozhengchao@huawei.com>
Mon, 25 Jul 2022 04:09:28 +0000 (12:09 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Aug 2022 10:39:33 +0000 (18:39 +0800)
commit108586eba094b318e6a831f977f4ddcc403a15da
tree914d96e6c7899271574a7ba791bc5018b2e3388e
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
crypto: sahara - don't sleep when in softirq

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>
drivers/crypto/sahara.c