Skip to content
Browse files

RDMA/cxgb4: Drop peer_abort when no endpoint found

commit 14b9222 upstream.

Log a warning and drop the abort message.  Otherwise we will do a
bogus wake_up() and crash.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
  • Loading branch information...
1 parent c69fa26 commit 47ca08df8af6387c4b31639b648bb740e3e36b93 @larrystevenwise larrystevenwise committed with bwhacks Apr 30, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 drivers/infiniband/hw/cxgb4/cm.c
View
6 drivers/infiniband/hw/cxgb4/cm.c
@@ -2714,6 +2714,12 @@ static int peer_abort_intr(struct c4iw_dev *dev, struct sk_buff *skb)
unsigned int tid = GET_TID(req);
ep = lookup_tid(t, tid);
+ if (!ep) {
+ printk(KERN_WARNING MOD
+ "Abort on non-existent endpoint, tid %d\n", tid);
+ kfree_skb(skb);
+ return 0;
+ }
if (is_neg_adv_abort(req->status)) {
PDBG("%s neg_adv_abort ep %p tid %u\n", __func__, ep,
ep->hwtid);

0 comments on commit 47ca08d

Please sign in to comment.
Something went wrong with that request. Please try again.