|
@@ -1162,6 +1162,7 @@ static void destroy_qp_common(struct mlx5_ib_dev *dev, struct mlx5_ib_qp *qp)
|
|
|
in = kzalloc(sizeof(*in), GFP_KERNEL);
|
|
|
if (!in)
|
|
|
return;
|
|
|
+
|
|
|
if (qp->state != IB_QPS_RESET) {
|
|
|
mlx5_ib_qp_disable_pagefaults(qp);
|
|
|
if (mlx5_core_qp_modify(dev->mdev, to_mlx5_state(qp->state),
|