diff options
author | Steve Wise <swise@opengridcomputing.com> | 2012-04-30 16:31:29 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-05-15 12:46:09 -0400 |
commit | 14b9222808bb8bfefc71f72bc0dbdcf3b2f0140f (patch) | |
tree | 8bb89fb298b62f3ecd22b10a12d07d065f2fd23f | |
parent | 0f1dcfae6bc5563424346ad3a03282b8235a4c33 (diff) |
RDMA/cxgb4: Drop peer_abort when no endpoint found
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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index b770a044fb8a..4c7c62fe49d3 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c | |||
@@ -2656,6 +2656,12 @@ static int peer_abort_intr(struct c4iw_dev *dev, struct sk_buff *skb) | |||
2656 | unsigned int tid = GET_TID(req); | 2656 | unsigned int tid = GET_TID(req); |
2657 | 2657 | ||
2658 | ep = lookup_tid(t, tid); | 2658 | ep = lookup_tid(t, tid); |
2659 | if (!ep) { | ||
2660 | printk(KERN_WARNING MOD | ||
2661 | "Abort on non-existent endpoint, tid %d\n", tid); | ||
2662 | kfree_skb(skb); | ||
2663 | return 0; | ||
2664 | } | ||
2659 | if (is_neg_adv_abort(req->status)) { | 2665 | if (is_neg_adv_abort(req->status)) { |
2660 | PDBG("%s neg_adv_abort ep %p tid %u\n", __func__, ep, | 2666 | PDBG("%s neg_adv_abort ep %p tid %u\n", __func__, ep, |
2661 | ep->hwtid); | 2667 | ep->hwtid); |