diff options
author | Muralidharan Karicheri <m-karicheri2@ti.com> | 2009-12-10 16:47:48 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-16 00:18:34 -0200 |
commit | 31bedfa5068936b15a388842be1d03cdd1bdfb07 (patch) | |
tree | d02d9204a0ed1fe2a9eca8b7f2d1553b1d85d5a3 /drivers/media/video/pwc/pwc-uncompress.c | |
parent | 0d94e29459d372b6c5dda964a8b35a8d40050ca7 (diff) |
V4L/DVB (13598): videobuf_dma_contig_user_get() for non-aligned offsets
If a USERPTR address that is not aligned to page boundary is passed to the
videobuf_dma_contig_user_get() function, it saves a page aligned address to
the dma_handle. This is not correct. This issue is observed when using USERPTR
IO machism for buffer exchange.
Updates from last version:-
Adding offset for size calculation as per comment from Magnus Damm. This
ensures the last page is also included for checking if memory is
contiguous.
Signed-off-by: Muralidharan Karicheri <m-karicheri2@ti.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pwc/pwc-uncompress.c')
0 files changed, 0 insertions, 0 deletions