diff options
author | Kuniyuki Iwashima <kuniyu@amazon.co.jp> | 2021-11-24 05:14:20 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-11-27 05:01:53 +0300 |
commit | f7ed31f4615f4e1d97c0e4325c5b8a240e10073c (patch) | |
tree | 5eebee0a94017c2a9aa80b99592ad5d892585e94 /sound | |
parent | 755662ce78d14c1a9118df921c528b1f992ded2e (diff) | |
download | linux-f7ed31f4615f4e1d97c0e4325c5b8a240e10073c.tar.xz |
af_unix: Pass struct sock to unix_autobind().
We do not use struct socket in unix_autobind() and pass struct sock to
unix_bind_bsd() and unix_bind_abstract(). Let's pass it to unix_autobind()
as well.
Also, this patch fixes these errors by checkpatch.pl.
ERROR: do not use assignment in if condition
#1795: FILE: net/unix/af_unix.c:1795:
+ if (test_bit(SOCK_PASSCRED, &sock->flags) && !u->addr
CHECK: Logical continuations should be on the previous line
#1796: FILE: net/unix/af_unix.c:1796:
+ if (test_bit(SOCK_PASSCRED, &sock->flags) && !u->addr
+ && (err = unix_autobind(sock)) != 0)
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions