mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[NET]: Fix race condition in sk_wait_event().
It is broken, the condition is checked out of socket lock. It is wonderful the bug survived for so long time. [ This fixes bugzilla #6233: race condition in tcp_sendmsg when connection became established ] Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6f5e6b9e69
commit
265a92856b
1 changed files with 1 additions and 1 deletions
|
@ -478,9 +478,9 @@ static inline void sk_add_backlog(struct sock *sk, struct sk_buff *skb)
|
|||
rc = __condition; \
|
||||
if (!rc) { \
|
||||
*(__timeo) = schedule_timeout(*(__timeo)); \
|
||||
rc = __condition; \
|
||||
} \
|
||||
lock_sock(__sk); \
|
||||
rc = __condition; \
|
||||
rc; \
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue