Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d086905 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Greg Kroah-Hartman
Browse files

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20201208203527.49262-1-christophe.jaillet@wanadoo.fr


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c7c74e6f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -659,7 +659,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;