Commit 1bdad5d
mptcp: hold msk lock before removing id 0 address
In mptcp_pm_nl_remove_doit(), move 'lock_sock(sk)' before invoking the
function mptcp_userspace_pm_remove_id_zero_address(). Then no need to
hold and release this lock in this function. And 'sk' and 'err' variables
and 'remove_err' label in it can be dropped.
Signed-off-by: Geliang Tang <[email protected]>1 parent 96a92e9 commit 1bdad5d
1 file changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | 259 | | |
261 | | - | |
262 | 260 | | |
263 | | - | |
264 | 261 | | |
265 | 262 | | |
266 | 263 | | |
267 | 264 | | |
268 | 265 | | |
269 | 266 | | |
270 | 267 | | |
271 | | - | |
| 268 | + | |
272 | 269 | | |
273 | 270 | | |
274 | 271 | | |
275 | 272 | | |
276 | 273 | | |
277 | 274 | | |
278 | 275 | | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 276 | + | |
284 | 277 | | |
285 | 278 | | |
286 | 279 | | |
| |||
324 | 317 | | |
325 | 318 | | |
326 | 319 | | |
| 320 | + | |
| 321 | + | |
327 | 322 | | |
328 | 323 | | |
| 324 | + | |
329 | 325 | | |
330 | 326 | | |
331 | 327 | | |
332 | | - | |
333 | | - | |
334 | 328 | | |
335 | 329 | | |
336 | 330 | | |
| |||
0 commit comments