X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fipv6%2Fip6_output.c;h=dae1949019d7b8dc77d14c39478571e86ad89f34;hb=284041ef21fdf2e0d216ab6b787bc9072b4eb58a;hp=d2eedf192330caf5a963c27ddaceffae5e4886b8;hpb=3e11a00d8561622a2598254853e2e8cc3e51e544;p=~andy%2Flinux diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index d2eedf19233..dae1949019d 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@ -1147,7 +1147,7 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to, if (WARN_ON(np->cork.opt)) return -EINVAL; - np->cork.opt = kmalloc(opt->tot_len, sk->sk_allocation); + np->cork.opt = kzalloc(opt->tot_len, sk->sk_allocation); if (unlikely(np->cork.opt == NULL)) return -ENOBUFS;