]> git.baikalelectronics.ru Git - kernel.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)
commit7745b11a45d85b1df9592e11d49703c7baab56b0
treee2cb35c6029a59ba46e24fe933404b0f442ecb73
parent3f60cad1dd4a514f43bf2bf404c4294b5a5a98a1
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