linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: korina: remove busy skb free
@ 2020-12-13 17:20 Vincent Stehlé
  2020-12-14 10:03 ` Julian Wiedmann
  0 siblings, 1 reply; 9+ messages in thread
From: Vincent Stehlé @ 2020-12-13 17:20 UTC (permalink / raw)
  To: netdev, linux-kernel
  Cc: Vincent Stehlé, David S . Miller, Jakub Kicinski, Florian Fainelli

The ndo_start_xmit() method must not attempt to free the skb to transmit
when returning NETDEV_TX_BUSY. Fix the korina_send_packet() function
accordingly.

Fixes: ef11291bcd5f ("Add support the Korina (IDT RC32434) Ethernet MAC")
Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Cc: David S. Miller <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Florian Fainelli <florian.fainelli@telecomint.eu>
---
 drivers/net/ethernet/korina.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/ethernet/korina.c b/drivers/net/ethernet/korina.c
index bf48f0ded9c7d..9d84191de6824 100644
--- a/drivers/net/ethernet/korina.c
+++ b/drivers/net/ethernet/korina.c
@@ -216,7 +216,6 @@ static int korina_send_packet(struct sk_buff *skb, struct net_device *dev)
 			netif_stop_queue(dev);
 		else {
 			dev->stats.tx_dropped++;
-			dev_kfree_skb_any(skb);
 			spin_unlock_irqrestore(&lp->lock, flags);
 
 			return NETDEV_TX_BUSY;
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-12-16 23:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-13 17:20 [PATCH] net: korina: remove busy skb free Vincent Stehlé
2020-12-14 10:03 ` Julian Wiedmann
2020-12-14 21:08   ` Jakub Kicinski
2020-12-14 21:27     ` Vincent Stehlé
2020-12-14 22:09     ` [PATCH v2] net: korina: fix return value Vincent Stehlé
2020-12-16 20:43       ` Jakub Kicinski
2020-12-16 21:32         ` Florian Fainelli
2020-12-16 23:02           ` Jakub Kicinski
2020-12-14 21:14   ` [PATCH] net: korina: remove busy skb free Vincent Stehlé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).