Commit b6193d7
Saeed Mahameed
net/mlx5e: Fix error handling in mlx5e_refresh_tirs
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: 80a2a90 ("net/mlx5e: Add a lock on tir list")
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>1 parent 3685919 commit b6193d7
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 153 | + | |
| 154 | + | |
157 | 155 | | |
158 | 156 | | |
159 | 157 | | |
| |||
171 | 169 | | |
172 | 170 | | |
173 | 171 | | |
174 | | - | |
| 172 | + | |
175 | 173 | | |
| 174 | + | |
176 | 175 | | |
177 | | - | |
178 | 176 | | |
179 | 177 | | |
180 | 178 | | |
181 | | - | |
182 | 179 | | |
183 | 180 | | |
184 | 181 | | |
0 commit comments