ipv6: Fix tcp_v6_send_response transport header setting.
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 21 Apr 2010 07:47:15 +0000 (00:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Apr 2010 07:47:15 +0000 (00:47 -0700)
commit6651ffc8e8bdd5fb4b7d1867c6cfebb4f309512c
treee2add54e43e43c36fd3cff6fdd4890c98a83c60b
parent8eabf95cb17253a3ac72b1a62ce8a80b3efecd62
ipv6: Fix tcp_v6_send_response transport header setting.

My recent patch to remove the open-coded checksum sequence in
tcp_v6_send_response broke it as we did not set the transport
header pointer on the new packet.

Actually, there is code there trying to set the transport
header properly, but it sets it for the wrong skb ('skb'
instead of 'buff').

This bug was introduced by commit
a8fdf2b331b38d61fb5f11f3aec4a4f9fb2dedcb ("ipv6: Fix
tcp_v6_send_response(): it didn't set skb transport header")

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