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

Commit 660adc6e authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by David S. Miller
Browse files

[IPv6]: Invalid semicolon after if statement



A similar fix to netfilter from Eric Dumazet inspired me to
look around a bit by using some grep/sed stuff as looking for
this kind of bugs seemed easy to automate. This is one of them
I found where it looks like this semicolon is not valid.

Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3b185525
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -820,7 +820,7 @@ static int ipv6_getsockopt_sticky(struct sock *sk, struct ipv6_txoptions *opt,
		return 0;
		return 0;


	len = min_t(unsigned int, len, ipv6_optlen(hdr));
	len = min_t(unsigned int, len, ipv6_optlen(hdr));
	if (copy_to_user(optval, hdr, len));
	if (copy_to_user(optval, hdr, len))
		return -EFAULT;
		return -EFAULT;
	return ipv6_optlen(hdr);
	return ipv6_optlen(hdr);
}
}