ipv6: Copy cork options in ip6_append_data
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 5 Feb 2009 23:15:50 +0000 (15:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2009 23:15:50 +0000 (15:15 -0800)
As the options passed to ip6_append_data may be ephemeral, we need
to duplicate it for corking.  This patch applies the simplest fix
which is to memdup all the relevant bits.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_output.c

Simple merge