Skip to content

Commit

Permalink
inetpeer: initialize ->redirect_genid in inet_getpeer()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Jan 17, 2012
1 parent 65e9d2f commit 10ec1bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv4/inetpeer.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ struct inet_peer *inet_getpeer(const struct inetpeer_addr *daddr, int create)
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));


Expand Down

0 comments on commit 10ec1bb

Please sign in to comment.