dmaengine: sirf: off by one in of_dma_sirfsoc_xlate()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 3 Apr 2014 07:29:33 +0000 (10:29 +0300)
committerVinod Koul <vinod.koul@intel.com>
Wed, 16 Apr 2014 06:29:24 +0000 (11:59 +0530)
commitf3817e777ca3a089381a5b2370fbb869c3bcce6f
tree64536afea5874a249b9d84ff0ef9b3cd2f618fd0
parent2dda47d1a416750bf69eb11dd9b6607d18287b0c
dmaengine: sirf: off by one in of_dma_sirfsoc_xlate()

The ">" here should be ">=" or we are one step beyond the end of the
sdma->channels[] array.

Fixes: 2e041c94628c ('dmaengine: sirf: enable generic dt binding for dma channels')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sirf-dma.c