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>

authored by Steve Wise and committed by Roland Dreier cde9e2f9 96ac7e88

-1
-1
drivers/infiniband/hw/cxgb3/iwch_qp.c
··· 1069 goto out; 1070 } 1071 qhp->attr.state = IWCH_QP_STATE_IDLE; 1072 - memset(&qhp->attr, 0, sizeof(qhp->attr)); 1073 break; 1074 case IWCH_QP_STATE_TERMINATE: 1075 if (!internal) {
··· 1069 goto out; 1070 } 1071 qhp->attr.state = IWCH_QP_STATE_IDLE; 1072 break; 1073 case IWCH_QP_STATE_TERMINATE: 1074 if (!internal) {