Skip to content

Commit

Permalink
net/mlx5: Annotate mutex destroy for root ns
Browse files Browse the repository at this point in the history
commit 9ca4153 upstream.

Invoke mutex_destroy() to catch any errors.

Fixes: 2cc43b4 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Roi Dayan authored and Greg Kroah-Hartman committed Jun 3, 2020
1 parent 4536269 commit 9b035b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,12 @@ static void del_sw_ns(struct fs_node *node)

static void del_sw_prio(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);
}

Expand Down

0 comments on commit 9b035b0

Please sign in to comment.