From: Menglong Dong Date: Wed, 3 Nov 2021 08:28:43 +0000 (+0800) Subject: net: udp6: replace __UDP_INC_STATS() with __UDP6_INC_STATS() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=250962e4684678629afd2feeaefdc40c5db501f4;p=linux.git net: udp6: replace __UDP_INC_STATS() with __UDP6_INC_STATS() __UDP_INC_STATS() is used in udpv6_queue_rcv_one_skb() when encap_rcv() fails. __UDP6_INC_STATS() should be used here, so replace it with __UDP6_INC_STATS(). Signed-off-by: Menglong Dong Signed-off-by: David S. Miller --- diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 12c12619ee357..e43b31d25fb61 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -700,9 +700,9 @@ static int udpv6_queue_rcv_one_skb(struct sock *sk, struct sk_buff *skb) ret = encap_rcv(sk, skb); if (ret <= 0) { - __UDP_INC_STATS(sock_net(sk), - UDP_MIB_INDATAGRAMS, - is_udplite); + __UDP6_INC_STATS(sock_net(sk), + UDP_MIB_INDATAGRAMS, + is_udplite); return -ret; } }