]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
IPv6: Invalid semicolon after if statement
authorIlpo Jarvinen <ilpo.jarvinen@helsinki.fi>
Wed, 22 Aug 2007 04:02:27 +0000 (21:02 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 31 Aug 2007 06:01:33 +0000 (23:01 -0700)
Author: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>

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: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv6/ipv6_sockglue.c

index aa3d07c52a8fd18d44361d4a6f5fa2fd2d5c1612..f329029cfbe6345f9873f46d68b3833b660dbbb1 100644 (file)
@@ -825,7 +825,7 @@ static int ipv6_getsockopt_sticky(struct sock *sk, struct ipv6_txoptions *opt,
                return 0;
 
        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 ipv6_optlen(hdr);
 }