aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2014-03-21 11:10:36 -0400
committerRoland Dreier <roland@purestorage.com>2014-04-02 11:53:53 -0400
commit977116c69862a6062f302395cb3546544d7e1bc1 (patch)
tree18febbdec097c914de5c8bda301cab0ebca36cfd /drivers/infiniband/hw/cxgb4
parenta7db89eb89cd6a444b16fdd602e818eed34d8222 (diff)
RDMA/cxgb4: Drop RX_DATA packets if the endpoint is gone
Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4')
-rw-r--r--drivers/infiniband/hw/cxgb4/cm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c
index 6836d114d75a..8a645d872483 100644
--- a/drivers/infiniband/hw/cxgb4/cm.c
+++ b/drivers/infiniband/hw/cxgb4/cm.c
@@ -1521,6 +1521,8 @@ static int rx_data(struct c4iw_dev *dev, struct sk_buff *skb)
1521 __u8 status = hdr->status; 1521 __u8 status = hdr->status;
1522 1522
1523 ep = lookup_tid(t, tid); 1523 ep = lookup_tid(t, tid);
1524 if (!ep)
1525 return 0;
1524 PDBG("%s ep %p tid %u dlen %u\n", __func__, ep, ep->hwtid, dlen); 1526 PDBG("%s ep %p tid %u dlen %u\n", __func__, ep, ep->hwtid, dlen);
1525 skb_pull(skb, sizeof(*hdr)); 1527 skb_pull(skb, sizeof(*hdr));
1526 skb_trim(skb, dlen); 1528 skb_trim(skb, dlen);