mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: add __rcu annotations to sk_wq and wq
Add proper RCU annotations/verbs to sk_wq and wq members Fix __sctp_write_space() sk_sleep() abuse (and sock->wq access) Fix sunrpc sk_sleep() abuse too Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
04cfa852ff
commit
eaefd1105b
6 changed files with 46 additions and 30 deletions
|
@ -1171,7 +1171,7 @@ restart:
|
|||
newsk->sk_type = sk->sk_type;
|
||||
init_peercred(newsk);
|
||||
newu = unix_sk(newsk);
|
||||
newsk->sk_wq = &newu->peer_wq;
|
||||
RCU_INIT_POINTER(newsk->sk_wq, &newu->peer_wq);
|
||||
otheru = unix_sk(other);
|
||||
|
||||
/* copy address information from listening to new sock*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue