aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2020-12-08 21:35:27 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-17 17:06:23 +0100
commit7cb2c431583e14604e4af72b72323078dc3e45a8 (patch)
tree6c9ba6441cadfc26edc774a0644148a4e73d592a /drivers/mmc
parent1e5ac057b05c4d41a0168d1b746e51ef30e86270 (diff)
downloadkernel_replicant_linux-7cb2c431583e14604e4af72b72323078dc3e45a8.tar.gz
kernel_replicant_linux-7cb2c431583e14604e4af72b72323078dc3e45a8.tar.bz2
kernel_replicant_linux-7cb2c431583e14604e4af72b72323078dc3e45a8.zip
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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/mxs-mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c
index 75007f61df97..4fbbff03137c 100644
--- a/drivers/mmc/host/mxs-mmc.c
+++ b/drivers/mmc/host/mxs-mmc.c
@@ -643,7 +643,7 @@ static int mxs_mmc_probe(struct platform_device *pdev)
ret = mmc_of_parse(mmc);
if (ret)
- goto out_clk_disable;
+ goto out_free_dma;
mmc->ocr_avail = MMC_VDD_32_33 | MMC_VDD_33_34;