Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipv6: fix possible crashes in ip6_cork_release()
commit 0178b69 ("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 <[email protected]> Signed-off-by: David S. Miller <[email protected]> Cc: Herbert Xu <[email protected]> Cc: Hideaki YOSHIFUJI <[email protected]> Cc: Neal Cardwell <[email protected]>
- Loading branch information