From: Herbert Xu Date: Wed, 5 Dec 2007 09:51:58 +0000 (-0800) Subject: [UDP]: Avoid repeated counting of checksum errors due to peeking X-Git-Tag: v2.6.25-rc1~1162^2~1210 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27ab2568649d5ba6c5a20212079b7c4f6da4ca0d;p=pandora-kernel.git [UDP]: Avoid repeated counting of checksum errors due to peeking Currently it is possible for two processes to peek on the same socket and end up incrementing the error counter twice for the same packet. This patch fixes it by making skb_kill_datagram return whether it succeeded in unlinking the packet and only incrementing the counter if it did. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed