diff options
| author | Kuniyuki Iwashima <[email protected]> | 2024-12-13 11:08:49 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-12-17 11:08:28 +0000 |
| commit | 62c6db251e667e8a240dc8209c00313240120fd6 (patch) | |
| tree | 61df709ebd4a189c0182c2494cffeab2bd9e6021 /tools/testing/selftests/net/lib/py/utils.py | |
| parent | af_unix: Clean up SOCK_DEAD error paths in unix_dgram_sendmsg(). (diff) | |
| download | kernel-62c6db251e667e8a240dc8209c00313240120fd6.tar.gz kernel-62c6db251e667e8a240dc8209c00313240120fd6.zip | |
af_unix: Clean up error paths in unix_dgram_sendmsg().
The error path is complicated in unix_dgram_sendmsg() because there
are two timings when other could be non-NULL: when it's fetched from
unix_peer_get() and when it's looked up by unix_find_other().
Let's move unix_peer_get() to the else branch for unix_find_other()
and clean up the error paths.
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions
