All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] inetpeer: initialize ->redirect_genid in inet_getpeer()
@ 2012-01-17 20:48 ` Dan Carpenter
  0 siblings, 0 replies; 8+ messages in thread
From: Dan Carpenter @ 2012-01-17 20:48 UTC (permalink / raw)
  To: Eric Dumazet
  Cc: David S. Miller, Alexey Kuznetsov, James Morris,
	Hideaki YOSHIFUJI, Patrick McHardy, netdev, kernel-janitors

kmemcheck complains that ->redirect_genid doesn't get initialized.
Presumably it should be set to zero.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/net/ipv4/inetpeer.c b/net/ipv4/inetpeer.c
index 86f13c67..49ce5f4 100644
--- a/net/ipv4/inetpeer.c
+++ b/net/ipv4/inetpeer.c
@@ -447,6 +447,7 @@ relookup:
 		p->rate_last = 0;
 		p->pmtu_expires = 0;
 		p->pmtu_orig = 0;
+		p->redirect_genid = 0;
 		memset(&p->redirect_learned, 0, sizeof(p->redirect_learned));
 
 

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

end of thread, other threads:[~2012-01-17 20:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-17 20:48 [patch] inetpeer: initialize ->redirect_genid in inet_getpeer() Dan Carpenter
2012-01-17 20:48 ` Dan Carpenter
2012-01-17 20:52 ` David Miller
2012-01-17 20:52   ` David Miller
2012-01-17 20:58   ` Eric Dumazet
2012-01-17 20:58     ` Eric Dumazet
2012-01-17 20:57 ` Eric Dumazet
2012-01-17 20:57   ` Eric Dumazet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.