diff options
author | Steve Wise <swise@opengridcomputing.com> | 2012-04-30 16:31:29 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-01 03:12:54 -0400 |
commit | 77f38874d05fef08ca1182155bd823f06343a3ad (patch) | |
tree | 14379624a4dfe70ff24b0dc509f8adb58270d823 /drivers/infiniband/hw/cxgb4/cm.c | |
parent | 35d73fe5e3d8c72a41c2eaf285a9bfb7b6c66aee (diff) |
RDMA/cxgb4: Drop peer_abort when no endpoint found
commit 14b9222808bb8bfefc71f72bc0dbdcf3b2f0140f 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/cm.c')
-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 daa93e942e1..267005d0e66 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c | |||
@@ -2316,6 +2316,12 @@ static int peer_abort_intr(struct c4iw_dev *dev, struct sk_buff *skb) | |||
2316 | unsigned int tid = GET_TID(req); | 2316 | unsigned int tid = GET_TID(req); |
2317 | 2317 | ||
2318 | ep = lookup_tid(t, tid); | 2318 | ep = lookup_tid(t, tid); |
2319 | if (!ep) { | ||
2320 | printk(KERN_WARNING MOD | ||
2321 | "Abort on non-existent endpoint, tid %d\n", tid); | ||
2322 | kfree_skb(skb); | ||
2323 | return 0; | ||
2324 | } | ||
2319 | if (is_neg_adv_abort(req->status)) { | 2325 | if (is_neg_adv_abort(req->status)) { |
2320 | PDBG("%s neg_adv_abort ep %p tid %u\n", __func__, ep, | 2326 | PDBG("%s neg_adv_abort ep %p tid %u\n", __func__, ep, |
2321 | ep->hwtid); | 2327 | ep->hwtid); |