diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-01-17 11:48:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-17 21:52:12 +0100 |
commit | 10ec1bb7e9eb462548f14dd53c73e927a3ddf31c (patch) | |
tree | dbdd695c7879a4c8039b38f123ea7846964399d5 /net/ipv4 | |
parent | net: fix NULL-deref in WARN() in skb_gso_segment() (diff) | |
download | linux-10ec1bb7e9eb462548f14dd53c73e927a3ddf31c.tar.xz linux-10ec1bb7e9eb462548f14dd53c73e927a3ddf31c.zip |
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/ipv4')
-rw-r--r-- | net/ipv4/inetpeer.c | 1 |
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: 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)); |