Skip to content
Commit fc7f8fd4 authored by Arnout Vandecappelle's avatar Arnout Vandecappelle Committed by Mauro Carvalho Chehab
Browse files

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: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent c06b062b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment