projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98d7c5e
)
mmc: pxamci: Fix another error handling path in pxamci_probe()
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Tue, 26 Jul 2022 19:15:51 +0000
(21:15 +0200)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 15 Aug 2022 13:59:33 +0000
(15:59 +0200)
The commit in Fixes: has introduced an new error handling without branching
to the existing error handling path.
Update it now and release some resources if pxamci_init_ocr() fails.
Fixes:
61951fd6cb49
("mmc: pxamci: let mmc core handle regulators")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: stable@vger.kernel.org
Link:
https://lore.kernel.org/r/07a2dcebf8ede69b484103de8f9df043f158cffd.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
37bf362
..
e4003f6
100644
(file)
--- a/
drivers/mmc/host/pxamci.c
+++ b/
drivers/mmc/host/pxamci.c
@@
-672,7
+672,7
@@
static int pxamci_probe(struct platform_device *pdev)
ret = pxamci_init_ocr(host);
if (ret < 0)
-
return re
t;
+
goto ou
t;
mmc->caps = 0;
host->cmdat = 0;