From: Muralidharan Karicheri Date: Thu, 10 Dec 2009 19:47:48 +0000 (-0300) Subject: V4L/DVB (13598): videobuf_dma_contig_user_get() for non-aligned offsets X-Git-Tag: v2.6.33-rc1~70^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31bedfa5068936b15a388842be1d03cdd1bdfb07;p=pandora-kernel.git 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 Acked-by: Magnus Damm Signed-off-by: Douglas Schilling Landgraf Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed