]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 Feb 2009 17:28:53 +0000 (09:28 -0800)
commita4c71b6b6fff146093cada694a1dde02f455da58
treeb8fcede8c6c3dda797af8695e909c3347d83140d
parentb1694c2beef9f38397762410d03ae6e38e91f8b7
net: Fix frag_list handling in skb_seq_read

[ Upstream commit 95e3b24cfb4ec0479d2c42f7a1780d68063a542a ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/skbuff.c