From: Arnout Vandecappelle Date: Wed, 17 Mar 2010 22:53:04 +0000 (-0300) Subject: V4L/DVB: buf-dma-sg.c: don't assume nr_pages == sglen X-Git-Tag: v2.6.35-rc1~480^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc7f8fd42c2b934ac348995e0c530c917fc277d5;p=pandora-kernel.git V4L/DVB: buf-dma-sg.c: don't assume nr_pages == sglen videobuf_pages_to_sg() and videobuf_vmalloc_to_sg() happen to create a scatterlist element for every page. However, this is not true for bus addresses, so other functions shouldn't rely on the length of the scatter list being equal to nr_pages. Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed