projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1048ba8
)
mmc: mxs-mmc: Fix a resource leak in an error handling path in 'mxs_mmc_probe()'
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Tue, 8 Dec 2020 20:35:27 +0000
(21:35 +0100)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 1 Feb 2021 10:54:41 +0000
(11:54 +0100)
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>
drivers/mmc/host/mxs-mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/mxs-mmc.c
b/drivers/mmc/host/mxs-mmc.c
index 56bbc6cd9c848b0909c4c5dc8d606b16d1698502..947581de786014c041af96c38637654766e79e00 100644
(file)
--- a/
drivers/mmc/host/mxs-mmc.c
+++ b/
drivers/mmc/host/mxs-mmc.c
@@
-628,7
+628,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;