Eric Dumazet 284041ef21 ipv6: fix possible crashes in ip6_cork_release()
commit 0178b695fd6b4 ("ipv6: Copy cork options in ip6_append_data")
added some code duplication and bad error recovery, leading to potential
crash in ip6_cork_release() as kfree() could be called with garbage.

use kzalloc() to make sure this wont happen.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Cc: Neal Cardwell <ncardwell@google.com>
2013-05-18 12:55:45 -07:00
..
2013-03-26 12:27:18 -04:00
2013-02-15 15:10:37 -05:00
2012-11-03 14:59:05 -04:00
2013-03-26 12:27:18 -04:00
2013-03-26 12:27:19 -04:00
2012-09-25 16:04:44 -04:00
2013-03-26 12:27:19 -04:00
2013-03-17 14:35:13 -04:00
2013-05-11 16:26:38 -07:00
2013-05-11 16:26:38 -07:00
2013-05-11 16:26:38 -07:00
2013-05-11 16:26:38 -07:00
2012-11-01 12:41:35 -04:00