From: Eric Dumazet Date: Fri, 17 May 2013 04:53:13 +0000 (+0000) Subject: ipv6: fix possible crashes in ip6_cork_release() X-Git-Tag: v3.10-rc3~18^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=284041ef21fdf2e0d216ab6b787bc9072b4eb58a;p=pandora-kernel.git 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 Signed-off-by: David S. Miller Cc: Herbert Xu Cc: Hideaki YOSHIFUJI Cc: Neal Cardwell --- Reading git-diff-tree failed