diff options
| author | Steve Wise <swise@opengridcomputing.com> | 2012-04-30 16:31:29 -0400 |
|---|---|---|
| committer | Luis Henriques <luis.henriques@canonical.com> | 2012-06-12 05:59:11 -0400 |
| commit | 6cda9aa6ce0332c5d2e555070270b67e1ff8b401 (patch) | |
| tree | 69d8e4f0e6f61720db2941352db5d3bd69b0f8dd /drivers/infiniband | |
| parent | 146cfa168739d7c7b7bc5c24b4264b943f8d4926 (diff) | |
RDMA/cxgb4: Drop peer_abort when no endpoint found
BugLink: http://bugs.launchpad.net/bugs/1008697
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>
Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Diffstat (limited to 'drivers/infiniband')
| -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); |
