diff options
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cm.c | 2 |
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); |