From: Duan Jiong Date: Thu, 31 Jul 2014 09:54:32 +0000 (+0800) Subject: net: fix the counter ICMP_MIB_INERRORS/ICMP6_MIB_INERRORS X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7304fe4681634a8e0511a5922c972aa132ffb43d;p=pandora-kernel.git net: fix the counter ICMP_MIB_INERRORS/ICMP6_MIB_INERRORS When dealing with ICMPv[46] Error Message, function icmp_socket_deliver() and icmpv6_notify() do some valid checks on packet's length, but then some protocols check packet's length redaudantly. So remove those duplicated statements, and increase counter ICMP_MIB_INERRORS/ICMP6_MIB_INERRORS in function icmp_socket_deliver() and icmpv6_notify() respectively. In addition, add missed counter in udp6/udplite6 when socket is NULL. Signed-off-by: Duan Jiong Acked-by: Hannes Frederic Sowa Signed-off-by: David S. Miller --- Reading git-diff-tree failed