]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix frag_list handling in skb_seq_read
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Jan 2009 00:07:52 +0000 (16:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Jan 2009 00:07:52 +0000 (16:07 -0800)
commit0b881281e7daeaeaa6344ccfbbca5138013936f7
treeae16c4b765c86fbb764a3519e4d73e6f148e6f89
parentdea45f6f1396ff8b5af15c4628326efa8cd00569
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