diff options
author | 2024-01-23 09:08:54 -0800 | |
---|---|---|
committer | 2024-01-26 20:34:25 -0800 | |
commit | 5b17307bd0789edea0675d524a2b277b93bbde62 (patch) | |
tree | 12578ed97ff17461f11530773e48c2ab9ecff385 /net/unix/af_unix.c | |
parent | af_unix: Do not use atomic ops for unix_sk(sk)->inflight. (diff) | |
download | wireguard-linux-5b17307bd0789edea0675d524a2b277b93bbde62.tar.xz wireguard-linux-5b17307bd0789edea0675d524a2b277b93bbde62.zip |
af_unix: Return struct unix_sock from unix_get_socket().
Currently, unix_get_socket() returns struct sock, but after calling
it, we always cast it to unix_sk().
Let's return struct unix_sock from unix_get_socket().
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Acked-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240123170856.41348-4-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions