summaryrefslogtreecommitdiffstats
path: root/net/rxrpc/ar-input.c
diff options
context:
space:
mode:
authorHerbert Xu2007-12-05 10:51:58 +0100
committerDavid S. Miller2008-01-28 23:56:32 +0100
commit27ab2568649d5ba6c5a20212079b7c4f6da4ca0d (patch)
tree19bb85e73d7deb0adf40386af3117c2f397b653d /net/rxrpc/ar-input.c
parent[IPV6]: Eliminate difference in actions of sysctl and proc handler for conf.a... (diff)
downloadkernel-qcow2-linux-27ab2568649d5ba6c5a20212079b7c4f6da4ca0d.tar.gz
kernel-qcow2-linux-27ab2568649d5ba6c5a20212079b7c4f6da4ca0d.tar.xz
kernel-qcow2-linux-27ab2568649d5ba6c5a20212079b7c4f6da4ca0d.zip
[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 <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc/ar-input.c')
0 files changed, 0 insertions, 0 deletions