Commit b634f875 authored by Alexandra Kossovsky's avatar Alexandra Kossovsky Committed by David S. Miller

tcp: Fix OOB POLLIN avoidance.

From: Alexandra.Kossovsky@oktetlabs.ru

Fixes kernel bugzilla #15541
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 22001a13
......@@ -429,7 +429,7 @@ unsigned int tcp_poll(struct file *file, struct socket *sock, poll_table *wait)
if (tp->urg_seq == tp->copied_seq &&
!sock_flag(sk, SOCK_URGINLINE) &&
tp->urg_data)
target--;
target++;
/* Potential race condition. If read of tp below will
* escape above sk->sk_state, we can be illegally awaken
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment