瀏覽代碼

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>
Steve Wise 16 年之前
父節點
當前提交
cde9e2f930
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/infiniband/hw/cxgb3/iwch_qp.c

+ 0 - 1
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;
 			goto out;
 		}
 		}
 		qhp->attr.state = IWCH_QP_STATE_IDLE;
 		qhp->attr.state = IWCH_QP_STATE_IDLE;
-		memset(&qhp->attr, 0, sizeof(qhp->attr));
 		break;
 		break;
 	case IWCH_QP_STATE_TERMINATE:
 	case IWCH_QP_STATE_TERMINATE:
 		if (!internal) {
 		if (!internal) {