net/mlx5: Release FTE lock in error flow
Release the FTE lock when adding rule to the FTE has failed.
Fixes: 0fd758d611
('net/mlx5: Don't unlock fte while still using it')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
077b1e8069
commit
9b8c514291
@ -1263,6 +1263,7 @@ static struct mlx5_flow_handle *add_rule_fg(struct mlx5_flow_group *fg,
|
||||
nested_lock_ref_node(&fte->node, FS_MUTEX_CHILD);
|
||||
handle = add_rule_fte(fte, fg, dest, dest_num, false);
|
||||
if (IS_ERR(handle)) {
|
||||
unlock_ref_node(&fte->node);
|
||||
kfree(fte);
|
||||
goto unlock_fg;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user