net/mlx5_core: Fix call to mlx5_core_qp_modify
authorHaggai Abramonvsky <hagaya@mellanox.com>
Thu, 2 Apr 2015 14:07:20 +0000 (17:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 20:33:40 +0000 (16:33 -0400)
Pass 0 in the sqd_event parameter.

Signed-off-by: Haggai Abramovsky <hagaya@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/mlx5/qp.c

index be0cd358b080977ed50fdc2dedcd2e0257a19a56..2c0f142cd3bacf9b7a63e04027d2eb08df99ae65 100644 (file)
@@ -1165,7 +1165,7 @@ static void destroy_qp_common(struct mlx5_ib_dev *dev, struct mlx5_ib_qp *qp)
        if (qp->state != IB_QPS_RESET) {
                mlx5_ib_qp_disable_pagefaults(qp);
                if (mlx5_core_qp_modify(dev->mdev, to_mlx5_state(qp->state),
-                                       MLX5_QP_STATE_RST, in, sizeof(*in), &qp->mqp))
+                                       MLX5_QP_STATE_RST, in, 0, &qp->mqp))
                        mlx5_ib_warn(dev, "mlx5_ib: modify QP %06x to RESET failed\n",
                                     qp->mqp.qpn);
        }