]> err.no Git - linux-2.6/commitdiff
[IPv6]: Invalid semicolon after if statement
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Wed, 15 Aug 2007 22:07:30 +0000 (15:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Aug 2007 22:07:30 +0000 (15:07 -0700)
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>
net/ipv6/ipv6_sockglue.c

index d6846393182d4294dc08f30d9fa99921dd881319..761a910f4f9717754cdb3d6280bda31de43bb125 100644 (file)
@@ -820,7 +820,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);
 }