net/mlx5_core: Fix struct type in the DESTROY_TIR/TIS device commands
[firefly-linux-kernel-4.4.55.git] / drivers / net / ethernet / mellanox / mlx5 / core / transobj.c
index b4c87c7b0cf01470ac4ac79a418c174c3f0fc820..d7068f54e80066acdcaf6bf081082d50feeebc57 100644 (file)
@@ -177,7 +177,7 @@ int mlx5_core_modify_tir(struct mlx5_core_dev *dev, u32 tirn, u32 *in,
 
 void mlx5_core_destroy_tir(struct mlx5_core_dev *dev, u32 tirn)
 {
-       u32 in[MLX5_ST_SZ_DW(destroy_tir_out)];
+       u32 in[MLX5_ST_SZ_DW(destroy_tir_in)];
        u32 out[MLX5_ST_SZ_DW(destroy_tir_out)];
 
        memset(in, 0, sizeof(in));
@@ -206,7 +206,7 @@ int mlx5_core_create_tis(struct mlx5_core_dev *dev, u32 *in, int inlen,
 
 void mlx5_core_destroy_tis(struct mlx5_core_dev *dev, u32 tisn)
 {
-       u32 in[MLX5_ST_SZ_DW(destroy_tis_out)];
+       u32 in[MLX5_ST_SZ_DW(destroy_tis_in)];
        u32 out[MLX5_ST_SZ_DW(destroy_tis_out)];
 
        memset(in, 0, sizeof(in));