esp6: Fix scatterlist initialization
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 25 Apr 2011 19:40:23 +0000 (19:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Apr 2011 19:46:04 +0000 (12:46 -0700)
commitc0a56e64aec331f33ead29ba493ee184d9bdc840
tree609d6b30b77dd7f129789d93e9d3fbc584791267
parent3f602b08dec32c418fc391fc838db357aab84f8a
esp6: Fix scatterlist initialization

When we use IPsec extended sequence numbers, we may overwrite
the last scatterlist of the associated data by the scatterlist
for the skb. This patch fixes this by placing the scatterlist
for the skb right behind the last scatterlist of the associated
data. esp4 does it already like that.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/esp6.c