]> git.baikalelectronics.ru Git - kernel.git/commit
net: lantiq_etop: don't free skb when returning NETDEV_TX_BUSY
authorZhang Changzhong <zhangchangzhong@huawei.com>
Fri, 21 Oct 2022 01:32:24 +0000 (09:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Oct 2022 12:02:18 +0000 (13:02 +0100)
commitfd67ec2c0b492ad9f0a44ac4fdb2776c8eff114d
tree383024e1af27011269bf6e10309f172efc52cd4a
parent8b8fa93575b63ba113f5ff2a37b68c832b9cc1cb
net: lantiq_etop: don't free skb when returning NETDEV_TX_BUSY

The ndo_start_xmit() method must not free skb when returning
NETDEV_TX_BUSY, since caller is going to requeue freed skb.

Fixes: 8bac39e93a5a ("MIPS: Lantiq: Add ethernet driver")
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/lantiq_etop.c