From: Steve Wise Date: Tue, 21 Apr 2009 00:00:53 +0000 (-0700) Subject: RDMA/cxgb3: Don't zero QP attrs when moving to IDLE X-Git-Tag: v2.6.30-rc4~5^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cde9e2f9307dd6af6bf8c5f02e41a6e27da9682a;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/cxgb3/iwch_qp.c b/drivers/infiniband/hw/cxgb3/iwch_qp.c index 2f546a6253300..27bbdc8e773ae 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) {