dmaengine: imx-sdma: initialize all script addresses
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 13 May 2020 06:04:05 +0000 (08:04 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 15 May 2020 07:01:06 +0000 (12:31 +0530)
commitbe4cf718cd9929e867ed1ff06d23fb4d08cc2d36
tree6007978a254890cebd76db4600b1af03c8185c63
parent7ae6d7bd7397e46bd72cb85ab573a669c4dac925
dmaengine: imx-sdma: initialize all script addresses

The script addresses array increases with each new version. The driver
initializes the array to -EINVAL initially, but only up to the size
of the v1 array. Initialize the additional addresses for the newer
versions as well. Without this uninitialized values of the newer arrays
are treated as valid.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Link: https://lore.kernel.org/r/20200513060405.18685-1-s.hauer@pengutronix.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-sdma.c