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-29 03:11:09 +0200
commit4c8bb95921e9ac01b9dd0c3abbaf6514ce88af92 (patch)
treef2cb426ec63496d0e96a7e81b65bb7649d3792c7
parentIB/security: Restrict use of the write() interface (diff)
downloadlinux-4c8bb95921e9ac01b9dd0c3abbaf6514ce88af92.tar.xz
linux-4c8bb95921e9ac01b9dd0c3abbaf6514ce88af92.zip
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 3ea9e055fdd3..92914539edc7 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;