net: 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> Link: https://lore.kernel.org/r/20210813145749.86512-1-changbin.du@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
39a0876d59
commit
afa79d08c6
@ -3107,7 +3107,7 @@ EXPORT_SYMBOL(__dev_kfree_skb_irq);
|
||||
|
||||
void __dev_kfree_skb_any(struct sk_buff *skb, enum skb_free_reason reason)
|
||||
{
|
||||
if (in_irq() || irqs_disabled())
|
||||
if (in_hardirq() || irqs_disabled())
|
||||
__dev_kfree_skb_irq(skb, reason);
|
||||
else
|
||||
dev_kfree_skb(skb);
|
||||
|
Reference in New Issue
Block a user