net/mlx5_core: Use the right inbox struct in destroy mkey command
authorAchiad Shochat <achiad@mellanox.com>
Thu, 2 Apr 2015 14:07:24 +0000 (17:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2015 20:33:41 +0000 (16:33 -0400)
struct mlx5_query_mkey_mbox_in rather than mlx5_destroy_mkey_mbox_in

Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/mr.c

index 184c3615f4799bbda0adc0da0e265cacc6ae8bd6..1a9b75139c2d9f43bda53ea79c5bb9573418e9cd 100644 (file)
@@ -141,7 +141,7 @@ EXPORT_SYMBOL(mlx5_core_destroy_mkey);
 int mlx5_core_query_mkey(struct mlx5_core_dev *dev, struct mlx5_core_mr *mr,
                         struct mlx5_query_mkey_mbox_out *out, int outlen)
 {
-       struct mlx5_destroy_mkey_mbox_in in;
+       struct mlx5_query_mkey_mbox_in in;
        int err;
 
        memset(&in, 0, sizeof(in));