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:12:33 +0000 (13:12 +0200)
commit87aea47373e6064140506316052f22f52c9e08c0
treeefc3e20d0a3365d599a62ec02284dd3e134e9011
parent8c5fd3d56f87e0dd401ba49c6061e15ac0c0860b
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