diff options
author | Vipul Pandya <vipul@chelsio.com> | 2012-05-18 05:59:29 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-05-18 16:22:32 -0400 |
commit | 4984037bef54253d4d010d3e57f175ab694bee26 (patch) | |
tree | 1519c324e47960546d66606ab4fa5a63fa203994 /drivers/infiniband/hw/cxgb4/cm.c | |
parent | 2c97478106880a5fb241a473252e61845a69386e (diff) |
RDMA/cxgb4: Disable interrupts in c4iw_ev_dispatch()
Use GFP_ATOMIC in _insert_handle() if ints are disabled.
Don't panic if we get an abort with no endpoint found. Just log a
warning.
Signed-off-by: Vipul Pandya <vipul@chelsio.com>
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/cm.c')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 4c7c62fe49d3..6ce401abdbd0 100644 --- a/drivers/infiniband/hw/cxgb4/cm.c +++ b/drivers/infiniband/hw/cxgb4/cm.c | |||
@@ -1362,7 +1362,10 @@ static int abort_rpl(struct c4iw_dev *dev, struct sk_buff *skb) | |||
1362 | 1362 | ||
1363 | ep = lookup_tid(t, tid); | 1363 | ep = lookup_tid(t, tid); |
1364 | PDBG("%s ep %p tid %u\n", __func__, ep, ep->hwtid); | 1364 | PDBG("%s ep %p tid %u\n", __func__, ep, ep->hwtid); |
1365 | BUG_ON(!ep); | 1365 | if (!ep) { |
1366 | printk(KERN_WARNING MOD "Abort rpl to freed endpoint\n"); | ||
1367 | return 0; | ||
1368 | } | ||
1366 | mutex_lock(&ep->com.mutex); | 1369 | mutex_lock(&ep->com.mutex); |
1367 | switch (ep->com.state) { | 1370 | switch (ep->com.state) { |
1368 | case ABORTING: | 1371 | case ABORTING: |