[CRYPTO]: Use CRYPTO_TFM_REQ_MAY_SLEEP where appropriate
This patch goes through the current users of the crypto layer and sets CRYPTO_TFM_REQ_MAY_SLEEP at crypto_alloc_tfm() where all crypto operations are performed in process context. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
64baf3cfea
commit
eb6f1160dd
@@ -1301,7 +1301,7 @@ static int micsetup(struct airo_info *ai) {
|
||||
int i;
|
||||
|
||||
if (ai->tfm == NULL)
|
||||
ai->tfm = crypto_alloc_tfm("aes", 0);
|
||||
ai->tfm = crypto_alloc_tfm("aes", CRYPTO_TFM_REQ_MAY_SLEEP);
|
||||
|
||||
if (ai->tfm == NULL) {
|
||||
printk(KERN_ERR "airo: failed to load transform for AES\n");
|
||||
|
Reference in New Issue
Block a user