summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorIlpo Jarvinen <ilpo.jarvinen@helsinki.fi>2007-08-21 21:02:27 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2007-08-30 23:01:33 -0700
commitf7d75b68abd28e63dd982bb6748bc5d32a289c42 (patch)
tree3285e6437010c8fd09063f4464cef969c1b1a9ca /net
parent6f333f6314bf003ee460abc633ea5037d1e53f06 (diff)
IPv6: Invalid semicolon after if statement
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>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/ipv6_sockglue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c
index aa3d07c52a8f..f329029cfbe6 100644
--- a/net/ipv6/ipv6_sockglue.c
+++ b/net/ipv6/ipv6_sockglue.c
@@ -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);
}