Commit 3b2d40d
af_unix: Reuse out_pipe label in unix_stream_sendmsg().
This is a follow-up of commit d460b04 ("af_unix: Clean up
error paths in unix_stream_sendmsg().").
If we initialise skb with NULL in unix_stream_sendmsg(), we can
reuse the existing out_pipe label for the SEND_SHUTDOWN check.
Let's rename it and adjust the existing label as out_pipe_lock.
While at it, size and data_len are moved to the while loop scope.
Suggested-by: Paolo Abeni <[email protected]>
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent b3e365b commit 3b2d40d
1 file changed
+9
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2238 | 2238 | | |
2239 | 2239 | | |
2240 | 2240 | | |
| 2241 | + | |
2241 | 2242 | | |
2242 | | - | |
2243 | | - | |
2244 | | - | |
2245 | 2243 | | |
2246 | 2244 | | |
2247 | | - | |
| 2245 | + | |
2248 | 2246 | | |
2249 | 2247 | | |
2250 | 2248 | | |
| |||
2273 | 2271 | | |
2274 | 2272 | | |
2275 | 2273 | | |
2276 | | - | |
2277 | | - | |
2278 | | - | |
2279 | | - | |
2280 | | - | |
2281 | | - | |
2282 | | - | |
| 2274 | + | |
| 2275 | + | |
2283 | 2276 | | |
2284 | 2277 | | |
2285 | | - | |
| 2278 | + | |
| 2279 | + | |
2286 | 2280 | | |
2287 | 2281 | | |
2288 | 2282 | | |
| |||
2335 | 2329 | | |
2336 | 2330 | | |
2337 | 2331 | | |
2338 | | - | |
| 2332 | + | |
2339 | 2333 | | |
2340 | 2334 | | |
2341 | 2335 | | |
| |||
2358 | 2352 | | |
2359 | 2353 | | |
2360 | 2354 | | |
2361 | | - | |
| 2355 | + | |
2362 | 2356 | | |
| 2357 | + | |
2363 | 2358 | | |
2364 | 2359 | | |
2365 | 2360 | | |
| |||
0 commit comments