|
@@ -1147,7 +1147,7 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to,
|
|
|
if (WARN_ON(np->cork.opt))
|
|
if (WARN_ON(np->cork.opt))
|
|
|
return -EINVAL;
|
|
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))
|
|
if (unlikely(np->cork.opt == NULL))
|
|
|
return -ENOBUFS;
|
|
return -ENOBUFS;
|
|
|
|
|
|