Message ID | 20221011212729.3777710-2-eric.dumazet@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 87445f369cca2965620e79f87145d3d7fa35befd |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | inet: ping: give ping some care | expand |
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c index 517042caf6dc10c46f6ddb349d99789e4f072382..705672f319e16645d5fe2f333ed00dbd020e1ea2 100644 --- a/net/ipv4/ping.c +++ b/net/ipv4/ping.c @@ -639,7 +639,7 @@ int ping_getfrag(void *from, char *to, * wcheck, it will be finalized in ping_v4_push_pending_frames. */ if (pfh->family == AF_INET6) { - skb->csum = pfh->wcheck; + skb->csum = csum_block_add(skb->csum, pfh->wcheck, odd); skb->ip_summed = CHECKSUM_NONE; pfh->wcheck = 0; }