]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa66e54ef279ca07cecf23e744856dc9d970667b
tree122ac633fa8ad71ac58e7228efc51a639f44466a
parentf77a5a95907233baa20d9c17d95cfe6adce31661
ipv6: Copy cork options in ip6_append_data

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