mtd: rawnand: qcom: Release resources on failure within qcom_nandc_alloc()
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 27 Feb 2020 12:37:47 +0000 (14:37 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 11 Mar 2020 15:17:54 +0000 (16:17 +0100)
commit80c3012e127cf8f4c0601868b2c23b1caab20b44
tree282b6f5760da09807d4944ec1acc50390630bb18
parentac80c55b46754fbe0394cf404a9091b551f00e22
mtd: rawnand: qcom: Release resources on failure within qcom_nandc_alloc()

In case when DMA channel request or alloc_bam_transaction() fails,
dma_unmap_single() and any channels already requested should be released.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200227123749.24064-6-peter.ujfalusi@ti.com
drivers/mtd/nand/raw/qcom_nandc.c