Skip to content

Commit

Permalink
crypto: skcipher - in_irq() cleanup
Browse files Browse the repository at this point in the history
Replace the obsolete and ambiguos macro in_irq() with new
macro in_hardirq().

Signed-off-by: Changbin Du <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
changbindu authored and herbertx committed Aug 21, 2021
1 parent 3e1d2c5 commit abfc7fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/skcipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit abfc7fa

Please sign in to comment.