mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 14:41:39 +00:00
[IPv6] SNMP: Restore Udp6InErrors incrementation
As the checksum verification is postponed till user calls recv or poll, the inrementation of Udp6InErrors counter should be also postponed. Currently, it is postponed in non-blocking operation case. However it should be postponed in all case like the IPv4 code. Signed-off-by: Mitsuru Chinen <mitch@linux.vnet.ibm.com> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3f192b5c58
commit
7a0ff716c2
@ -205,12 +205,11 @@ out:
|
||||
return err;
|
||||
|
||||
csum_copy_err:
|
||||
UDP6_INC_STATS_USER(UDP_MIB_INERRORS, is_udplite);
|
||||
skb_kill_datagram(sk, skb, flags);
|
||||
|
||||
if (flags & MSG_DONTWAIT) {
|
||||
UDP6_INC_STATS_USER(UDP_MIB_INERRORS, is_udplite);
|
||||
if (flags & MSG_DONTWAIT)
|
||||
return -EAGAIN;
|
||||
}
|
||||
goto try_again;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user