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

Commit 07130477 authored by Roi Dayan's avatar Roi Dayan Committed by Saeed Mahameed
Browse files

net/mlx5: Fix not releasing read lock when adding flow rules



If building match list fg fails and we never jumped to
search_again_locked label then the function returned without
unlocking the read lock.

Fixes: bd71b08e ("net/mlx5: Support multiple updates of steering rules in parallel")
Signed-off-by: default avatarRoi Dayan <roid@mellanox.com>
Reviewed-by: default avatarMaor Gottlieb <maorg@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent c88a026e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1726,6 +1726,8 @@ _mlx5_add_flow_rules(struct mlx5_flow_table *ft,
	if (err) {
		if (take_write)
			up_write_ref_node(&ft->node);
		else
			up_read_ref_node(&ft->node);
		return ERR_PTR(err);
	}