netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [IPv6]: Invalid semicolon after if statement
@ 2007-08-15 21:57 Ilpo Järvinen
  2007-08-15 22:08 ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Ilpo Järvinen @ 2007-08-15 21:57 UTC (permalink / raw)
  To: David Miller, YOSHIFUJI Hideaki; +Cc: Netdev

[-- Attachment #1: Type: TEXT/PLAIN, Size: 852 bytes --]


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>
---
 net/ipv6/ipv6_sockglue.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c
index d684639..761a910 100644
--- a/net/ipv6/ipv6_sockglue.c
+++ b/net/ipv6/ipv6_sockglue.c
@@ -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);
 }
-- 
1.5.0.6

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-08-16  9:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-15 21:57 [PATCH] [IPv6]: Invalid semicolon after if statement Ilpo Järvinen
2007-08-15 22:08 ` David Miller
2007-08-15 23:52   ` Dave Jones
2007-08-16  0:51     ` David Miller
2007-08-16  9:25       ` Ilpo Järvinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).