]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit945645b7dd733ad96bc86222262700a7ecda14f2
tree914d96e6c7899271574a7ba791bc5018b2e3388e
parent3d7dcb2c5450a57f60c448f42be48fdfe456bfdf
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: 0a38abb0ad80 ("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