summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangbin Du <changbin.du@gmail.com>2021-08-14 09:11:14 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2021-08-21 15:44:58 +0800
commit4284f085e9cf243918069aacd051267b8870fe21 (patch)
tree565224f95a6181f46d0fdec1df0da89b5dfcf1ec
parenta9658b0e26e30827b8ae4de593511736e047e1f1 (diff)
downloadlinux-crypto-4284f085e9cf243918069aacd051267b8870fe21.tar.gz
linux-crypto-4284f085e9cf243918069aacd051267b8870fe21.zip
crypto: skcipher - in_irq() cleanup
Replace the obsolete and ambiguos macro in_irq() with new macro in_hardirq(). Signed-off-by: Changbin Du <changbin.du@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--crypto/skcipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/skcipher.c b/crypto/skcipher.c
index a1537624..41821118 100644
--- a/crypto/skcipher.c
+++ b/crypto/skcipher.c
@@ -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;