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:09:08 +0000 (13:09 +0200)
commitbb2b7243e3f7b78b3ab720b084166d43bf0f2eac
treef09395de948fc287838ad37358e44507aeec2258
parent4cea08638e9aad931771a4a5b50dabf86910e4de
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