mtd: rawnand: intel: Fix an error handling path in 'ebu_dma_start()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 24 Jan 2021 07:39:55 +0000 (08:39 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 1 Feb 2021 17:59:19 +0000 (18:59 +0100)
commit073abfa7ea9a5b0537d6f92b42baedaf82a04c53
tree719930aa98330fa69e30cf28bc6a7c2ad045b8be
parent94d07f6a539db14ced8c0c2ae6ed4ab9623a24ab
mtd: rawnand: intel: Fix an error handling path in 'ebu_dma_start()'

If 'dmaengine_prep_slave_single()' fails, we must undo a previous
'dma_map_single()' call, as already done in all the other error handling
paths of this function.

Fixes: 0b1039f016e8 ("mtd: rawnand: Add NAND controller support on Intel LGM SoC")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210124073955.728797-1-christophe.jaillet@wanadoo.fr
drivers/mtd/nand/raw/intel-nand-controller.c