[UDP]: Fix MSG_PROBE crash
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 3 Oct 2006 21:35:49 +0000 (14:35 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 4 Oct 2006 07:31:00 +0000 (00:31 -0700)
commit1e0c14f49d6b393179f423abbac47f85618d3d46
tree9d789c9e4988f96a2da35506f12aeeb5b945432d
parent132a55f3c5c0b1a364d32f65595ad8838c30a60e
[UDP]: Fix MSG_PROBE crash

UDP tracks corking status through the pending variable.  The
IP layer also tracks it through the socket write queue.  It
is possible for the two to get out of sync when MSG_PROBE is
used.

This patch changes UDP to check the write queue to ensure
that the two stay in sync.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c
net/ipv6/udp.c