diff options
author | 2024-12-13 20:08:42 +0900 | |
---|---|---|
committer | 2024-12-17 12:08:27 +0100 | |
commit | d460b04bc452cf15810b79c15381fffd9d201915 (patch) | |
tree | 7a7eca7aa1c855fb2e6f07b76591988948dbfe6e /net/unix/sysctl_net_unix.c | |
parent | af_unix: Set error only when needed in unix_stream_sendmsg(). (diff) | |
download | wireguard-linux-d460b04bc452cf15810b79c15381fffd9d201915.tar.xz wireguard-linux-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 <kuniyu@amazon.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions