]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
gre: Initialise rtnl_link tunnel parameters properly
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 11 Oct 2008 19:20:15 +0000 (12:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Oct 2008 19:20:15 +0000 (12:20 -0700)
Brown paper bag error of calling memset with sizeof(p) instead
of sizeof(*p).

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c

index 05ebce2881efc30924c95a4ae56fbd26ab817eb1..85c487b8572b726a365e869a92e8ad00669d76b7 100644 (file)
@@ -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;