]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine i.MX sdma: check sg entries for valid addresses and lengths
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 12 Jan 2011 12:02:28 +0000 (13:02 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Mon, 31 Jan 2011 11:33:08 +0000 (12:33 +0100)
commitb0347b9bc54c0016cf34d3c03b1279d9f6cb5116
tree2582ad91ea12c462745b2ef11d0fccfee73acee5
parent13032836e2d33579e0a8ee91884bdb6ab5a080d0
dmaengine i.MX sdma: check sg entries for valid addresses and lengths

This patch lets sdma_prep_slave_sg fail if the entries of an
sg list do not start on multiples of the word size or if the
lengths are not multiple of the word size.
Also, catch the previously unhandled DMA_SLAVE_BUSWIDTH_8_BYTES
and DMA_SLAVE_BUSWIDTH_UNDEFINED cases.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
drivers/dma/imx-sdma.c