]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB: buf-dma-sg.c: don't assume nr_pages == sglen
authorArnout Vandecappelle <arnout@mind.be>
Wed, 17 Mar 2010 22:53:04 +0000 (19:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:58:40 +0000 (12:58 -0300)
commit497fab49fa7109512ae3720c2bd8c570e37d14f4
treed83e4e80cbf38e3a64f1c6d32347e50535b0778a
parentad577fd8c5db15ecaa4704a2b4475fa5819cde42
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 <mchehab@redhat.com>
drivers/media/video/videobuf-dma-sg.c