Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b46d9f62 authored by Hannes Frederic Sowa's avatar Hannes Frederic Sowa Committed by David S. Miller
Browse files

ipv4: fix checksum annotation in udp4_csum_init



Reported-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Tom Herbert <tom@herbertland.com>
Fixes: 4068579e ("net: Implmement RFC 6936 (zero RX csums for UDP/IPv6")
Signed-off-by: default avatarHannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c148d163
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1755,7 +1755,10 @@ static inline int udp4_csum_init(struct sk_buff *skb, struct udphdr *uh,
			return err;
	}

	return skb_checksum_init_zero_check(skb, proto, uh->check,
	/* Note, we are only interested in != 0 or == 0, thus the
	 * force to int.
	 */
	return (__force int)skb_checksum_init_zero_check(skb, proto, uh->check,
							 inet_compute_pseudo);
}