aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2010-04-05 15:59:57 -0400
committerRoland Dreier <rolandd@cisco.com>2010-04-21 18:21:28 -0400
commit73a203d2014f50d874b9e40083ad481ca70408e8 (patch)
tree61e6b580a99d99b7428adbd5f5dc1d6731bdc548 /drivers/infiniband
parent7960d6b9de7716e9080b47f6dc4d415d967e032d (diff)
RDMA/cxgb3: Don't free skbs on NET_XMIT_* indications from LLD
The low level cxgb3 driver can return NET_XMIT_CN and friends. The iw_cxgb3 driver should _not_ treat these as errors. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/cxgb3/iwch_cm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c
index 4fef03296276..cfd6db019f1e 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_cm.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_cm.c
@@ -151,7 +151,7 @@ int iwch_l2t_send(struct t3cdev *tdev, struct sk_buff *skb, struct l2t_entry *l2
151 return -EIO; 151 return -EIO;
152 } 152 }
153 error = l2t_send(tdev, skb, l2e); 153 error = l2t_send(tdev, skb, l2e);
154 if (error) 154 if (error < 0)
155 kfree_skb(skb); 155 kfree_skb(skb);
156 return error; 156 return error;
157} 157}
@@ -167,7 +167,7 @@ int iwch_cxgb3_ofld_send(struct t3cdev *tdev, struct sk_buff *skb)
167 return -EIO; 167 return -EIO;
168 } 168 }
169 error = cxgb3_ofld_send(tdev, skb); 169 error = cxgb3_ofld_send(tdev, skb);
170 if (error) 170 if (error < 0)
171 kfree_skb(skb); 171 kfree_skb(skb);
172 return error; 172 return error;
173} 173}