summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb3
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2009-04-20 17:00:53 -0700
committerRoland Dreier <rolandd@cisco.com>2009-04-20 17:00:53 -0700
commitcde9e2f9307dd6af6bf8c5f02e41a6e27da9682a (patch)
treec0503da1e1ee368d5cbd5d37f6309f1798be49e7 /drivers/infiniband/hw/cxgb3
parent96ac7e88922da6ab33efea87c6b560ba5ab11e75 (diff)
downloadtalos-obmc-linux-cde9e2f9307dd6af6bf8c5f02e41a6e27da9682a.tar.gz
talos-obmc-linux-cde9e2f9307dd6af6bf8c5f02e41a6e27da9682a.zip
RDMA/cxgb3: Don't zero QP attrs when moving to IDLE
QP attributes must stay initialized when moving back to IDLE. Zeroing them will crash the system in _flush_qp() if the QP is subsequently moved to ERROR and back to IDLE. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb3')
-rw-r--r--drivers/infiniband/hw/cxgb3/iwch_qp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_qp.c b/drivers/infiniband/hw/cxgb3/iwch_qp.c
index 2f546a625330..27bbdc8e773a 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_qp.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_qp.c
@@ -1069,7 +1069,6 @@ int iwch_modify_qp(struct iwch_dev *rhp, struct iwch_qp *qhp,
goto out;
}
qhp->attr.state = IWCH_QP_STATE_IDLE;
- memset(&qhp->attr, 0, sizeof(qhp->attr));
break;
case IWCH_QP_STATE_TERMINATE:
if (!internal) {
OpenPOWER on IntegriCloud