mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-01 11:24:25 +08:00
net: arcnet: Do not call kfree_skb() under local_irq_disable()
[ Upstream commit786c96e92f
] 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:05fcd31cc4
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
93a572b9d4
commit
510e0cbd64
@ -468,7 +468,7 @@ static void arcnet_reply_tasklet(struct tasklet_struct *t)
|
|||||||
|
|
||||||
ret = sock_queue_err_skb(sk, ackskb);
|
ret = sock_queue_err_skb(sk, ackskb);
|
||||||
if (ret)
|
if (ret)
|
||||||
kfree_skb(ackskb);
|
dev_kfree_skb_irq(ackskb);
|
||||||
|
|
||||||
local_irq_enable();
|
local_irq_enable();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user