dmaengine: ti: k3-udma: Fix cleanup code for alloc_chan_resources
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 27 May 2020 07:06:11 +0000 (10:06 +0300)
committerVinod Koul <vkoul@kernel.org>
Tue, 16 Jun 2020 15:56:03 +0000 (21:26 +0530)
commit5a9377cc7421b59b13c9b90b8dc0aca332a1c958
treef8ecda637754f220153c0765eb531aab835875ad
parent9f2f3ce3daed229eecf647acac44defbdee1f7c0
dmaengine: ti: k3-udma: Fix cleanup code for alloc_chan_resources

Some of the earlier errors should be sent to the error cleanup path to
make sure that the uchan struct is reset, the dma_pool (if allocated) is
released and memcpy channel pairs are released in a correct way.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20200527070612.636-2-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/k3-udma.c