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>
This commit is contained in:
Changbin Du 2021-08-14 09:11:14 +08:00 committed by Herbert Xu
parent 3e1d2c52b2
commit abfc7fad63
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,7 @@ static int skcipher_copy_iv(struct skcipher_walk *walk)
static int skcipher_walk_first(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; return -EDEADLK;
walk->buffer = NULL; walk->buffer = NULL;