net/mlx5: Avoid cleaning flow steering table twice during error flow
commit8e33903695b5d9ab03b7c725d5d24a2ef95f253c
authorTalat Batheesh <talatb@mellanox.com>
Sun, 15 Apr 2018 08:26:19 +0000 (15 11:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 May 2018 08:19:34 +0000 (19 10:19 +0200)
tree964dc7a633a4a9b2bbbbec512722ef8ba4692667
parente48d6d7e92214a40d821234feaa7feca98453449
net/mlx5: Avoid cleaning flow steering table twice during error flow

[ Upstream commit 9c26f5f89d01ca21560c6b8a8e4054c271cc3a9c ]

When we fail to initialize the RX root namespace, we need
to clean only that and not the entire flow steering.

Currently the code may try to clean the flow steering twice
on error witch leads to null pointer deference.
Make sure we clean correctly.

Fixes: fba53f7b5719 ("net/mlx5: Introduce mlx5_flow_steering structure")
Signed-off-by: Talat Batheesh <talatb@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c