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

Commit 79e0f1c9 authored by Tom Herbert's avatar Tom Herbert Committed by David S. Miller
Browse files

ipv6: Need to sock_put on csum error



Commit 4068579e ("net: Implmement
RFC 6936 (zero RX csums for UDP/IPv6)") introduced zero checksums
being allowed for IPv6, but in the case that a socket disallows a
zero checksum on RX we need to sock_put.

Signed-off-by: default avatarTom Herbert <therbert@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5a50a927
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -884,6 +884,7 @@ int __udp6_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
		int ret;

		if (!uh->check && !sk->sk_no_check) {
			sock_put(sk);
			udp6_csum_zero_error(skb);
			goto csum_error;
		}