dmaengine: k3dma: Off by one in k3_of_dma_simple_xlate()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 22 Jun 2018 11:15:47 +0000 (14:15 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:06:53 +0000 (13:06 +0200)
commit16a4d4e05f2208e096a0bb7120f8f4b76d21ef22
tree93ea0a0b401313d45aa9020c9cfb650cd8b142d5
parentd830b2678a68318887dcf5db34d109af36ce1ca1
dmaengine: k3dma: Off by one in k3_of_dma_simple_xlate()

[ Upstream commit c4c2b7644cc9a41f17a8cc8904efe3f66ae4c7ed ]

The d->chans[] array has d->dma_requests elements so the > should be
>= here.

Fixes: 8e6152bc660e ("dmaengine: Add hisilicon k3 DMA engine driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/k3dma.c