ARM: dma-mapping: don't allow DMA mappings to be marked executable
commit0ea1ec713f04bdfac343c9702b21cd3a7c711826
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 23 Oct 2013 15:14:59 +0000 (23 16:14 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 24 Oct 2013 10:17:27 +0000 (24 11:17 +0100)
tree9ec6404b4db40cbdfa705e8addc9f35071dc6586
parent59fd3033b55642da97b4ecde0c85de78d7229675
ARM: dma-mapping: don't allow DMA mappings to be marked executable

DMA mapping permissions were being derived from pgprot_kernel directly
without using PAGE_KERNEL.  This causes them to be marked with executable
permission, which is not what we want.  Fix this.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/dma-mapping.c