Skip to content

Commit

Permalink
tcp: Fix OOB POLLIN avoidance.
Browse files Browse the repository at this point in the history
From: Alexandra.Kossovsky@oktetlabs.ru

Fixes kernel bugzilla #15541

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Alexandra Kossovsky authored and David S. Miller committed Mar 19, 2010
1 parent 22001a1 commit b634f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b634f87

Please sign in to comment.