projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6bd18f
)
RDMA/nes: don't leak skb if carrier down
author
Florian Westphal
<fw@strlen.de>
Sun, 24 Apr 2016 20:18:59 +0000
(22:18 +0200)
committer
Doug Ledford
<dledford@redhat.com>
Fri, 29 Apr 2016 01:11:09 +0000
(21:11 -0400)
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>
drivers/infiniband/hw/nes/nes_nic.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/infiniband/hw/nes/nes_nic.c
b/drivers/infiniband/hw/nes/nes_nic.c
index 3ea9e055fdd37f27be5f8accad68aca74caa3780..92914539edc7c2b5eaff94820744bacf2b41b79a 100644
(file)
--- 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;