From: Herbert Xu Date: Sat, 11 Oct 2008 19:20:15 +0000 (-0700) Subject: gre: Initialise rtnl_link tunnel parameters properly X-Git-Tag: v2.6.28-rc1~707^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7bb82d924536cfa62db73dd381b07d9e9b084ffa;p=linux-2.6-omap-h63xx.git gre: Initialise rtnl_link tunnel parameters properly Brown paper bag error of calling memset with sizeof(p) instead of sizeof(*p). Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index 05ebce2881e..85c487b8572 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c @@ -1345,7 +1345,7 @@ out: static void ipgre_netlink_parms(struct nlattr *data[], struct ip_tunnel_parm *parms) { - memset(parms, 0, sizeof(parms)); + memset(parms, 0, sizeof(*parms)); parms->iph.protocol = IPPROTO_GRE;