From: Changbin Du Date: Sat, 14 Aug 2021 01:11:14 +0000 (+0800) Subject: crypto: skcipher - in_irq() cleanup X-Git-Tag: libata-5.15-2021-09-05~102^2~7 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=abfc7fad63940b8dfdfd25da6f0fa813d9561645;p=linux-2.6-block.git crypto: skcipher - in_irq() cleanup Replace the obsolete and ambiguos macro in_irq() with new macro in_hardirq(). Signed-off-by: Changbin Du Signed-off-by: Herbert Xu --- 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;