]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
udp: increment UDP_MIB_INERRORS if copy failed
authorEric Dumazet <edumazet@google.com>
Wed, 5 Sep 2012 23:34:44 +0000 (23:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Sep 2012 16:56:00 +0000 (12:56 -0400)
commit979402b16cde048ced4839e21cc49e0779352b80
treee2cb35c6029a59ba46e24fe933404b0f442ecb73
parent521130d11fd37b328543477df5522704a0e7cf2c
udp: increment UDP_MIB_INERRORS if copy failed

In UDP recvmsg(), we miss an increase of UDP_MIB_INERRORS if the copy
of skb to userspace failed for whatever reason.

Reported-by: Shawn Bohrer <sbohrer@rgmadvisors.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c
net/ipv6/udp.c