Skip to content
Commit e8aa6d52 authored by Vincent Stehlé's avatar Vincent Stehlé Committed by Jakub Kicinski
Browse files

net: ethernet: mtk-star-emac: return ok when xmit drops



The ndo_start_xmit() method must return NETDEV_TX_OK if the DMA mapping
fails, after freeing the socket buffer.
Fix the mtk_star_netdev_start_xmit() function accordingly.

Fixes: 8c7bd5a4 ("net: ethernet: mtk-star-emac: new driver")
Signed-off-by: default avatarVincent Stehlé <vincent.stehle@laposte.net>
Acked-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Link: https://lore.kernel.org/r/20201112084833.21842-1-vincent.stehle@laposte.net


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 1922a46b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment