inetpeer: initialize ->redirect_genid in inet_getpeer()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 17 Jan 2012 10:48:43 +0000 (10:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jan 2012 20:52:12 +0000 (15:52 -0500)
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>
net/ipv4/inetpeer.c

index 986a02bda66010736e431a192b63a4ba04f65da0..bf4a9c4808e1faaa7461a472f224a4d3c8edf379 100644 (file)
@@ -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));