Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95fde2e4 authored by Roi Dayan's avatar Roi Dayan Committed by Greg Kroah-Hartman
Browse files

net/mlx5: Annotate mutex destroy for root ns



commit 9ca415399dae133b00273a4283ef31d003a6818d upstream.

Invoke mutex_destroy() to catch any errors.

Fixes: 2cc43b49 ("net/mlx5_core: Managing root flow table")
Signed-off-by: default avatarRoi Dayan <roid@mellanox.com>
Reviewed-by: default avatarMark Bloch <markb@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 999b6919
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -364,6 +364,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);
}