net/mlx5: fix crash in device probe
authorXueming Li <xuemingl@mellanox.com>
Tue, 12 Jun 2018 11:38:11 +0000 (19:38 +0800)
committerShahaf Shuler <shahafs@mellanox.com>
Sun, 17 Jun 2018 08:04:48 +0000 (10:04 +0200)
commita9fc0b0ef0c276fcea082b20574e27cca1bac3e8
tree94fc4ac2c7dcda572285e44c46a951fc103171ba
parent93068a9d5ad819f36a72086db2d73d0042e3852c
net/mlx5: fix crash in device probe

This patch initializes counter descriptor struct before invoking Verbs
api to avoid segmentation fault.

Fixes: 9a761de8ea14 ("net/mlx5: flow counter support")
Cc: stable@dpdk.org
Signed-off-by: Xueming Li <xuemingl@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5.c