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)
committerHiroshi Doyu <hdoyu@nvidia.com>
Fri, 7 Sep 2012 08:46:10 +0000 (11:46 +0300)
commita9d62a75deec71f4366694dc42a1051afcf53a06
treeb2568eb69d0bbe910787f62450f9fb676f198cfe
parent55557ba47f5ab921551ef26d310cb0090bc60f81
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