Skip to content

Commit 786c96e

Browse files
ruanjinjie-engdavem330
authored andcommitted
net: arcnet: Do not call kfree_skb() under local_irq_disable()
It is not allowed to call kfree_skb() from hardware interrupt context or with hardware interrupts being disabled. So replace kfree_skb() with dev_kfree_skb_irq() under local_irq_disable(). Compile tested only. Fixes: 05fcd31 ("arcnet: add err_skb package for package status feedback") Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 49fa4b0 commit 786c96e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/arcnet/arcnet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ static void arcnet_reply_tasklet(struct tasklet_struct *t)
464464

465465
ret = sock_queue_err_skb(sk, ackskb);
466466
if (ret)
467-
kfree_skb(ackskb);
467+
dev_kfree_skb_irq(ackskb);
468468

469469
local_irq_enable();
470470
};

0 commit comments

Comments
 (0)