net: Fix frag_list handling in skb_seq_read
commit95e3b24cfb4ec0479d2c42f7a1780d68063a542a
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Jan 2009 00:07:52 +0000 (29 16:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Jan 2009 00:07:52 +0000 (29 16:07 -0800)
treeae16c4b765c86fbb764a3519e4d73e6f148e6f89
parente125646ab56b490d0390b158e0afa9cccfc1f897
net: Fix frag_list handling in skb_seq_read

The frag_list handling was broken in skb_seq_read:

1) We didn't add the stepped offset when looking at the head
are of fragments other than the first.

2) We didn't take the stepped offset away when setting the data
pointer in the head area.

3) The frag index wasn't reset.

This patch fixes both issues.

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