Skip to content

Commit b886f54

Browse files
tititiou36storulf
authored andcommitted
mmc: pxamci: Fix another error handling path in pxamci_probe()
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: 61951fd ("mmc: pxamci: let mmc core handle regulators") Signed-off-by: Christophe JAILLET <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/07a2dcebf8ede69b484103de8f9df043f158cffd.1658862932.git.christophe.jaillet@wanadoo.fr Signed-off-by: Ulf Hansson <[email protected]>
1 parent 98d7c5e commit b886f54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/pxamci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ static int pxamci_probe(struct platform_device *pdev)
672672

673673
ret = pxamci_init_ocr(host);
674674
if (ret < 0)
675-
return ret;
675+
goto out;
676676

677677
mmc->caps = 0;
678678
host->cmdat = 0;

0 commit comments

Comments
 (0)