RDMA/nes: don't leak skb if carrier down
Subsystems (3)
PATCH 1/1 RDMA/nes: don't leak skb if carrier down
Alternatively one could free the skb, OTOH I don't think this test is useful so just remove it.
---
Noticed this while working on the TX_LOCKED removal.
drivers/infiniband/hw/nes/nes_nic.c +0 -3
@@ -500,9 +500,6 @@ static int nes_netdev_start_xmit(struct sk_buff *skb, struct net_device *netdev)* skb_shinfo(skb)->nr_frags, skb_is_gso(skb)); */ -if (!netif_carrier_ok (netdev)) -return NETDEV_TX_OK ; -if (netif_queue_stopped (netdev))return NETDEV_TX_BUSY ;
Signature · 6 lines
2.7.3 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1461529139-28582-1-git-send-email-fw-HFFVJYpyMKqzQB+pC5nmwQ@public.gmane.org
From: Florian Westphal <[email protected]>
Date: Sun, 24 Apr 2016 22:18:59 +0200
Quoted 7 lines
Alternatively one could free the skb, OTOH I don't think this test is useful so just remove it.
Cc <[email protected]>Signed-off-by Florian Westphal <[email protected]>---
Noticed this while working on theTX_LOCKEDremoval.
Assuming Doug will take this.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 6 lines · David Miller
From: Florian Westphal <[email protected]>
Date: Sun, 24 Apr 2016 22:18:59 +0200Quoted 3 lines
Alternatively one could free the skb, OTOH I don't think this test is useful so just remove it.
Quoted 6 lines
Quoted 4 lines
Cc <[email protected]>Signed-off-by Florian Westphal <[email protected]>---
Noticed this while working on theTX_LOCKEDremoval.Assuming Doug will take this.
Thanks for mentioning this ;-)
They had sent to netdev and cc:ed linux-rdma, so I took that to mean they intended for you to take it. I'll pick it up for my upcoming pull request.