Skip to content

Commit 9ca4153

Browse files
roidayanSaeed Mahameed
authored and
Saeed Mahameed
committed
net/mlx5: Annotate mutex destroy for root ns
Invoke mutex_destroy() to catch any errors. Fixes: 2cc43b4 ("net/mlx5_core: Managing root flow table") Signed-off-by: Roi Dayan <[email protected]> Reviewed-by: Mark Bloch <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 6eb7a26 commit 9ca4153

File tree

1 file changed

+6
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+6
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/fs_core.c

+6
Original file line numberDiff line numberDiff line change
@@ -2350,6 +2350,12 @@ static int init_root_tree(struct mlx5_flow_steering *steering,
23502350

23512351
static void del_sw_root_ns(struct fs_node *node)
23522352
{
2353+
struct mlx5_flow_root_namespace *root_ns;
2354+
struct mlx5_flow_namespace *ns;
2355+
2356+
fs_get_obj(ns, node);
2357+
root_ns = container_of(ns, struct mlx5_flow_root_namespace, ns);
2358+
mutex_destroy(&root_ns->chain_lock);
23532359
kfree(node);
23542360
}
23552361

0 commit comments

Comments
 (0)