From: Olaf Kirch Date: Sun, 24 Jun 2007 06:11:52 +0000 (-0700) Subject: [NET]: Make skb_seq_read unmap the last fragment X-Git-Tag: v2.6.22-rc6~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b5a60da281c767196427ce8144deae6ec46b389;p=pandora-kernel.git [NET]: Make skb_seq_read unmap the last fragment Having walked through the entire skbuff, skb_seq_read would leave the last fragment mapped. As a consequence, the unwary caller would leak kmaps, and proceed with preempt_count off by one. The only (kind of non-intuitive) workaround is to use skb_seq_read_abort. This patch makes sure skb_seq_read always unmaps frag_data after having cycled through the skb's paged part. Signed-off-by: Olaf Kirch Signed-off-by: David S. Miller --- Reading git-diff-tree failed