]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Avoid cleaning flow steering table twice during error flow
authorTalat Batheesh <talatb@mellanox.com>
Sun, 15 Apr 2018 08:26:19 +0000 (11:26 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 26 Apr 2018 19:43:20 +0000 (12:43 -0700)
commit8a00a47534f893870a966bf73336352af3929ac3
tree1f8d4297196ffa3a77fe6efa849596f3bc35b000
parent60ad4bd903d2e8b7cf27ddd89a3e2f9b59fd15eb
net/mlx5: Avoid cleaning flow steering table twice during error flow

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: 49b138246969 ("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>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c