net/mlx5: fix crash on deleting flow drop queue
authorYongseok Koh <yskoh@mellanox.com>
Mon, 1 May 2017 21:05:42 +0000 (14:05 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 5 May 2017 15:46:26 +0000 (17:46 +0200)
commit6839dae96c264a5c3f343f28977997532e5d0a44
tree94e637788c40a91c630fd67593e39644ccdd7b3e
parent993b2455fbbd9f4339211d6faa7b15f8ecf84ec8
net/mlx5: fix crash on deleting flow drop queue

If mlx5_dev_start() fails, it tries to rollback data structures related to
rte_flow including drop queue. The destruction code doesn't assume the
structures are created but priv_flow_delete_drop_queue() never does sanity
check. This can cause a crash.

Fixes: 028761059aeb ("net/mlx5: use an RSS drop queue")

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_flow.c