mtd: rawnand: qcom: Add missing nand_cleanup() in error path
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Fri, 2 Apr 2021 15:01:28 +0000 (20:31 +0530)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 7 Apr 2021 08:06:26 +0000 (10:06 +0200)
commitab2c8d3ef9b828a1eb1a7d448185bf4242bb0afd
tree1ef07ffe91a97508bb9c4b9de7d7202937dddda6
parent13b89768275d6ca9764bf91449e4cafe46ba706b
mtd: rawnand: qcom: Add missing nand_cleanup() in error path

Add missing nand_cleanup() in the alloc_bam_transaction() error path
to cleanup the resources properly.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210402150128.29128-5-manivannan.sadhasivam@linaro.org
drivers/mtd/nand/raw/qcom_nandc.c