net/mlx5: fix crash when meter action conf is null
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Fri, 13 Dec 2019 14:21:34 +0000 (22:21 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:01 +0000 (19:46 +0100)
commit4f19f4140e058c92822f228dcdc55c44bd88b613
treef3835bf2344acda49c11dbde91f8a5a430c54a5d
parent88d57889c9f8034e5075a299e4300a862da6449a
net/mlx5: fix crash when meter action conf is null

When offloading the meter, should check the action
conf and make sure it is valid.

Fixes: f46bf7488705 ("net/mlx5: support meter flow action")
Cc: stable@dpdk.org
Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Reviewed-by: Suanming Mou <suanmingm@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c