aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorFancy Fang <[email protected]>2014-10-09 23:21:22 -0300
committerMauro Carvalho Chehab <[email protected]>2014-10-24 09:32:41 -0200
commit8a6a547fe1b13fe3e523b3f076f8295dd03a7c41 (patch)
treea4b0185ee0b20b2f0953c752ecd55fc66cfc1006 /lib/memory-notifier-error-inject.c
parentf2d90e6479ab199f568dc16cba0813e47e8b1d95 (diff)
[media] videobuf-dma-contig: set vm_pgoff to be zero to pass the sanity check in vm_iomap_memory()
When user requests V4L2_MEMORY_MMAP type buffers, the videobuf-core will assign the corresponding offset to the 'boff' field of the videobuf_buffer for each requested buffer sequentially. Later, user may call mmap() to map one or all of the buffers with the 'offset' parameter which is equal to its 'boff' value. Obviously, the 'offset' value is only used to find the matched buffer instead of to be the real offset from the buffer's physical start address as used by vm_iomap_memory(). So, in some case that if the offset is not zero, vm_iomap_memory() will fail. Signed-off-by: Fancy Fang <[email protected]> Reviewed-by: Marek Szyprowski <[email protected]> Reviewed-by: Hans Verkuil <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions