Skip to contentSkip to conversation

crypto: in_irq() cleanup

PATCH In review Changbin Du 2 participants 2 messages Aug 14, 2021 – Aug 21, 2021 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: in_irq() cleanup

Replace the obsolete and ambiguos macro in_irq() with new macro in_hardirq().

---
 crypto/skcipher.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/skcipher.c +1 -1
index a15376245416..418211180cee 100644
@@ -431,7 +431,7 @@ static int skcipher_copy_iv(struct skcipher_walk *walk)
 
 static int skcipher_walk_first(struct skcipher_walk *walk)
 {
-	if (WARN_ON_ONCE(in_irq()))
+	if (WARN_ON_ONCE(in_hardirq()))
 		return -EDEADLK;
 
 	walk->buffer = NULL;
Signature · 1 line
2.30.2
maintainer
#1 lore raw
Quoted 7 lines · Changbin Du

Replace the obsolete and ambiguos macro in_irq() with new macro in_hardirq().

---
 crypto/skcipher.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt