ARM: dma-mapping: add more sanity checks in arm_dma_mmap()
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 30 Jul 2012 07:35:26 +0000 (09:35 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 30 Jul 2012 10:25:45 +0000 (12:25 +0200)
commit50262a4bf38dd70486e9fce2b8235d5ae3e0f627
treef20c140547bd6d33079143fcc77d81844796609c
parente9da6e9905e639b0f842a244bc770b48ad0523e9
ARM: dma-mapping: add more sanity checks in arm_dma_mmap()

Add some sanity checks and forbid mmaping of buffers into vma areas larger
than allocated dma buffer.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
arch/arm/mm/dma-mapping.c