diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/udp.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 18696af106d6..8b48512ebf6a 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
@@ -236,8 +236,14 @@ out: | |||
236 | 236 | ||
237 | csum_copy_err: | 237 | csum_copy_err: |
238 | lock_sock(sk); | 238 | lock_sock(sk); |
239 | if (!skb_kill_datagram(sk, skb, flags)) | 239 | if (!skb_kill_datagram(sk, skb, flags)) { |
240 | UDP6_INC_STATS_USER(sock_net(sk), UDP_MIB_INERRORS, is_udplite); | 240 | if (is_udp4) |
241 | UDP_INC_STATS_USER(sock_net(sk), | ||
242 | UDP_MIB_INERRORS, is_udplite); | ||
243 | else | ||
244 | UDP6_INC_STATS_USER(sock_net(sk), | ||
245 | UDP_MIB_INERRORS, is_udplite); | ||
246 | } | ||
241 | release_sock(sk); | 247 | release_sock(sk); |
242 | 248 | ||
243 | if (flags & MSG_DONTWAIT) | 249 | if (flags & MSG_DONTWAIT) |