diff options
author | Jinjie Ruan <ruanjinjie@huawei.com> | 2023-08-24 08:43:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-08-25 11:10:52 +0200 |
commit | 786c96e92fb9e854cb8b0cb7399bb2fb28e15c4b (patch) | |
tree | b7228134838370f277e8ee4df7c22781e288d828 | |
parent | octeontx2-pf: fix page_pool creation fail for rings > 32k (diff) | |
download | linux-786c96e92fb9e854cb8b0cb7399bb2fb28e15c4b.tar.xz linux-786c96e92fb9e854cb8b0cb7399bb2fb28e15c4b.zip |
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: 05fcd31cc472 ("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>
-rw-r--r-- | drivers/net/arcnet/arcnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/arcnet/arcnet.c b/drivers/net/arcnet/arcnet.c index 99265667538c..d9e052c49ba1 100644 --- a/drivers/net/arcnet/arcnet.c +++ b/drivers/net/arcnet/arcnet.c @@ -464,7 +464,7 @@ static void arcnet_reply_tasklet(struct tasklet_struct *t) ret = sock_queue_err_skb(sk, ackskb); if (ret) - kfree_skb(ackskb); + dev_kfree_skb_irq(ackskb); local_irq_enable(); }; |