mmc: mxs-mmc: Fix a resource leak in an error handling path in 'mxs_mmc_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 8 Dec 2020 20:35:27 +0000 (21:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 15:34:30 +0000 (16:34 +0100)
commite24109bf5fcb784e18b3e69f938fcd2dd195d07c
treef88839445078b5d3378edf3c0e5f71b3c7feb672
parent9a0c8402fd341b6e4f87b6f049dd0bd2f6fafe03
mmc: mxs-mmc: Fix a resource leak in an error handling path in 'mxs_mmc_probe()'

[ Upstream commit 0bb7e560f821c7770973a94e346654c4bdccd42c ]

If 'mmc_of_parse()' fails, we must undo the previous 'dma_request_chan()'
call.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20201208203527.49262-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/mxs-mmc.c