diff options
| author | Kuniyuki Iwashima <[email protected]> | 2024-12-13 11:08:42 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-12-17 11:08:27 +0000 |
| commit | d460b04bc452cf15810b79c15381fffd9d201915 (patch) | |
| tree | 7a7eca7aa1c855fb2e6f07b76591988948dbfe6e /tools/testing/selftests/net/lib/py/utils.py | |
| parent | af_unix: Set error only when needed in unix_stream_sendmsg(). (diff) | |
| download | kernel-d460b04bc452cf15810b79c15381fffd9d201915.tar.gz kernel-d460b04bc452cf15810b79c15381fffd9d201915.zip | |
af_unix: Clean up error paths in unix_stream_sendmsg().
If we move send_sig() to the SEND_SHUTDOWN check before
the while loop, then we can reuse the same kfree_skb()
after the pipe_err_free label.
Let's gather the scattered kfree_skb()s in error paths.
While at it, some style issues are fixed, and the pipe_err_free
label is renamed to out_pipe to match other label names.
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
