aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoi Dayan <roid@mellanox.com>2020-05-14 23:44:38 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2020-05-22 17:28:52 -0700
commit9ca415399dae133b00273a4283ef31d003a6818d (patch)
tree3cd0a55255ab027973333a58c2a0d80bda92cde2
parent6eb7a268a99bad8346d4baa148a14456d061c1c3 (diff)
downloadlinux-yocto-9ca415399dae133b00273a4283ef31d003a6818d.tar.gz
linux-yocto-9ca415399dae133b00273a4283ef31d003a6818d.tar.bz2
linux-yocto-9ca415399dae133b00273a4283ef31d003a6818d.zip
net/mlx5: Annotate mutex destroy for root ns
Invoke mutex_destroy() to catch any errors. Fixes: 2cc43b494a6c ("net/mlx5_core: Managing root flow table") Signed-off-by: Roi Dayan <roid@mellanox.com> Reviewed-by: Mark Bloch <markb@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/fs_core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
index 02d0f94eaaad..9620c8650e13 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
@@ -2350,6 +2350,12 @@ static int init_root_tree(struct mlx5_flow_steering *steering,
static void del_sw_root_ns(struct fs_node *node)
{
+ struct mlx5_flow_root_namespace *root_ns;
+ struct mlx5_flow_namespace *ns;
+
+ fs_get_obj(ns, node);
+ root_ns = container_of(ns, struct mlx5_flow_root_namespace, ns);
+ mutex_destroy(&root_ns->chain_lock);
kfree(node);
}