projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7db89e
)
RDMA/cxgb4: Drop RX_DATA packets if the endpoint is gone
author
Steve Wise
<swise@opengridcomputing.com>
Fri, 21 Mar 2014 15:10:36 +0000
(20:40 +0530)
committer
Roland Dreier
<roland@purestorage.com>
Wed, 2 Apr 2014 15:53:53 +0000
(08:53 -0700)
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/cm.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/cxgb4/cm.c
b/drivers/infiniband/hw/cxgb4/cm.c
index 6836d114d75ae4eb6fb62a361feb5308c33280cc..8a645d8724830add5cfb368b3c4e2bb0d800e5e5 100644
(file)
--- 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);