summaryrefslogtreecommitdiffstats
path: root/crypto/skcipher.c
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
commitabfc7fad63940b8dfdfd25da6f0fa813d9561645 (patch)
tree7a2997da2122d996cdfc2c5fc8b7605ec4dc860e /crypto/skcipher.c
parent3e1d2c52b2045ba7f90966b02daeb6c438432570 (diff)
downloadlinux-abfc7fad63940b8dfdfd25da6f0fa813d9561645.tar.gz
linux-abfc7fad63940b8dfdfd25da6f0fa813d9561645.tar.bz2
linux-abfc7fad63940b8dfdfd25da6f0fa813d9561645.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>
Diffstat (limited to 'crypto/skcipher.c')
-rw-r--r--crypto/skcipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/skcipher.c b/crypto/skcipher.c
index a15376245416..418211180cee 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;