X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipv6%2Fip6_tunnel.c;h=a995796b5a577fb7b0f4a947d54a85897143a1ab;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=84d7ebdb9d211103c678579009d6c24dc905379f;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index 84d7ebdb9..a995796b5 100644 --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c @@ -19,6 +19,7 @@ * */ +#include #include #include #include @@ -567,9 +568,10 @@ static inline struct ipv6_txoptions *create_tel(__u8 encap_limit) int opt_len = sizeof(*opt) + 8; - if (!(opt = kzalloc(opt_len, GFP_ATOMIC))) { + if (!(opt = kmalloc(opt_len, GFP_ATOMIC))) { return NULL; } + memset(opt, 0, opt_len); opt->tot_len = opt_len; opt->dst0opt = (struct ipv6_opt_hdr *) (opt + 1); opt->opt_nflen = 8;