summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-04-24 22:18:59 +0200
committerDoug Ledford <dledford@redhat.com>2016-04-28 21:11:09 -0400
commit4c8bb95921e9ac01b9dd0c3abbaf6514ce88af92 (patch)
treef2cb426ec63496d0e96a7e81b65bb7649d3792c7
parente6bd18f57aad1a2d1ef40e646d03ed0f2515c9e3 (diff)
downloadop-kernel-dev-4c8bb95921e9ac01b9dd0c3abbaf6514ce88af92.zip
op-kernel-dev-4c8bb95921e9ac01b9dd0c3abbaf6514ce88af92.tar.gz
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. Cc: <linux-rdma@vger.kernel.org> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r--drivers/infiniband/hw/nes/nes_nic.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c
index 3ea9e05..9291453 100644
--- a/drivers/infiniband/hw/nes/nes_nic.c
+++ b/drivers/infiniband/hw/nes/nes_nic.c
@@ -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;
OpenPOWER on IntegriCloud