aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-01-17 05:48:43 -0500
committerDavid S. Miller <davem@davemloft.net>2012-01-17 15:52:12 -0500
commit10ec1bb7e9eb462548f14dd53c73e927a3ddf31c (patch)
treedbdd695c7879a4c8039b38f123ea7846964399d5 /net
parent65e9d2faab70d07b9a38ac6ed298f191d24541fc (diff)
inetpeer: initialize ->redirect_genid in inet_getpeer()
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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/inetpeer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/inetpeer.c b/net/ipv4/inetpeer.c
index 986a02bda660..bf4a9c4808e1 100644
--- a/net/ipv4/inetpeer.c
+++ b/net/ipv4/inetpeer.c
@@ -447,6 +447,7 @@ relookup:
447 p->rate_last = 0; 447 p->rate_last = 0;
448 p->pmtu_expires = 0; 448 p->pmtu_expires = 0;
449 p->pmtu_orig = 0; 449 p->pmtu_orig = 0;
450 p->redirect_genid = 0;
450 memset(&p->redirect_learned, 0, sizeof(p->redirect_learned)); 451 memset(&p->redirect_learned, 0, sizeof(p->redirect_learned));
451 452
452 453