]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: korina: fix return value
authorVincent Stehlé <vincent.stehle@laposte.net>
Mon, 14 Dec 2020 22:09:52 +0000 (23:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Dec 2020 12:47:02 +0000 (13:47 +0100)
commitd9ee6f8412b0a472bd5fa475a2eef4f07059c2d4
tree30d01a39190010dc13c01a37da82aed3125b6f92
parent6885636a7485abebeec79c27605624a38e2ef3a2
net: korina: fix return value

[ Upstream commit 7eb000bdbe7c7da811ef51942b356f6e819b13ba ]

The ndo_start_xmit() method must not attempt to free the skb to transmit
when returning NETDEV_TX_BUSY. Therefore, make sure the
korina_send_packet() function returns NETDEV_TX_OK when it frees a packet.

Fixes: ef11291bcd5f ("Add support the Korina (IDT RC32434) Ethernet MAC")
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20201214220952.19935-1-vincent.stehle@laposte.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/korina.c