mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-09 18:15:49 +00:00
net/mlx5e: Fix error handling in mlx5e_refresh_tirs
[ Upstream commitb6193d7030] Allocation failure is outside the critical lock section and should return immediately rather than jumping to the unlock section. Also unlock as soon as required and remove the now redundant jump label. Fixes:80a2a9026b("net/mlx5e: Add a lock on tir list") Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
7c3e271626
commit
4156c6ff33
1 changed files with 4 additions and 7 deletions
Loading…
Add table
Add a link
Reference in a new issue