linux/drivers/net/ethernet/xilinx
Yang Yingliang 2a979f0874 net: emaclite: don't call dev_kfree_skb() under spin_lock_irqsave()
[ Upstream commit d1678bf45f ]

It is not allowed to call kfree_skb() or consume_skb() from hardware
interrupt context or with hardware interrupts being disabled.

It should use dev_kfree_skb_irq() or dev_consume_skb_irq() instead.
The difference between them is free reason, dev_kfree_skb_irq() means
the SKB is dropped in error and dev_consume_skb_irq() means the SKB
is consumed in normal.

In this case, dev_kfree_skb() is called in xemaclite_tx_timeout() to
drop the SKB, when tx timeout, so replace it with dev_kfree_skb_irq().

Fixes: bb81b2ddfa ("net: add Xilinx emac lite device driver")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:27 +01:00
..
Kconfig net: ethernet: xilinx: cleanup comments 2022-02-18 11:11:10 +00:00
ll_temac_main.c net: ll_temac: axienet: delete unnecessary blank lines and spaces 2022-09-21 18:25:20 -07:00
ll_temac_mdio.c net: ll_temac: fix the format of block comments 2022-09-21 18:25:18 -07:00
ll_temac.h net: ll_temac: fix the format of block comments 2022-09-21 18:25:18 -07:00
Makefile
xilinx_axienet_main.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
xilinx_axienet_mdio.c net: ll_temac: axienet: delete unnecessary blank lines and spaces 2022-09-21 18:25:20 -07:00
xilinx_axienet.h net: ll_temac: axienet: align with open parenthesis 2022-09-21 18:25:19 -07:00
xilinx_emaclite.c net: emaclite: don't call dev_kfree_skb() under spin_lock_irqsave() 2022-12-31 13:32:27 +01:00