projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
568035b
)
mmc: pxamci: Fix an error handling path in pxamci_probe()
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Tue, 26 Jul 2022 19:15:43 +0000
(21:15 +0200)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 15 Aug 2022 13:53:50 +0000
(15:53 +0200)
The commit in Fixes: has moved some code around without updating gotos to
the error handling path.
Update it now and release some resources if pxamci_of_init() fails.
Fixes: fa3a5115469c ("mmc: pxamci: call mmc_of_parse()")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: stable@vger.kernel.org
Link:
https://lore.kernel.org/r/6d75855ad4e2470e9ed99e0df21bc30f0c925a29.1658862932.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/pxamci.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/pxamci.c
b/drivers/mmc/host/pxamci.c
index 0db9490dc6595a18ddea35717341259168a690f5..37bf362a0ed5636bbd6e0dba84a8663418917cae 100644
(file)
--- a/
drivers/mmc/host/pxamci.c
+++ b/
drivers/mmc/host/pxamci.c
@@
-648,7
+648,7
@@
static int pxamci_probe(struct platform_device *pdev)
ret = pxamci_of_init(pdev, mmc);
if (ret)
-
return re
t;
+
goto ou
t;
host = mmc_priv(mmc);
host->mmc = mmc;