Skip to content

Commit 3f4f034

Browse files
roidayangregkh
authored andcommitted
net/mlx5: Annotate mutex destroy for root ns
commit 9ca4153 upstream. 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f493398 commit 3f4f034

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,12 @@ static void del_sw_ns(struct fs_node *node)
417417

418418
static void del_sw_prio(struct fs_node *node)
419419
{
420+
struct mlx5_flow_root_namespace *root_ns;
421+
struct mlx5_flow_namespace *ns;
422+
423+
fs_get_obj(ns, node);
424+
root_ns = container_of(ns, struct mlx5_flow_root_namespace, ns);
425+
mutex_destroy(&root_ns->chain_lock);
420426
kfree(node);
421427
}
422428

0 commit comments

Comments
 (0)