From: Eric Dumazet Date: Fri, 9 Oct 2009 04:43:40 +0000 (+0000) Subject: udp: Fix udp_poll() and ioctl() X-Git-Tag: v2.6.32-rc5~13^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85584672012ee0c3b7b8e033a1ecf7c11878e45f;p=pandora-kernel.git udp: Fix udp_poll() and ioctl() udp_poll() can in some circumstances drop frames with incorrect checksums. Problem is we now have to lock the socket while dropping frames, or risk sk_forward corruption. This bug is present since commit 95766fff6b9a78d1 ([UDP]: Add memory accounting.) While we are at it, we can correct ioctl(SIOCINQ) to also drop bad frames. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed