[ARM] dma: add validation of DMA params
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Mon, 29 Sep 2008 12:48:17 +0000 (13:48 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 29 Sep 2008 12:54:28 +0000 (13:54 +0100)
commit0e18b5d7c6339311f1e32e7b186ae3556c5b6d33
treed9c3ce8112509cbf0e1e8e668711c1375feb4120
parent3216a97bb0d5166ec5795aa3db1c3a02415ac060
[ARM] dma: add validation of DMA params

Validate the direction argument like x86 does.  In addition,
validate the dma_unmap_* parameters against those passed to
dma_map_* when using the DMA bounce code.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/dmabounce.c
arch/arm/include/asm/dma-mapping.h