From: Steve Wise Date: Fri, 21 Mar 2014 15:10:36 +0000 (+0530) Subject: RDMA/cxgb4: Drop RX_DATA packets if the endpoint is gone X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=977116c69862a6062f302395cb3546544d7e1bc1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git RDMA/cxgb4: Drop RX_DATA packets if the endpoint is gone Signed-off-by: Steve Wise Signed-off-by: Roland Dreier --- 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) __u8 status = hdr->status; ep = lookup_tid(t, tid); + if (!ep) + return 0; PDBG("%s ep %p tid %u dlen %u\n", __func__, ep, ep->hwtid, dlen); skb_pull(skb, sizeof(*hdr)); skb_trim(skb, dlen);