Skip to content

Commit 98d7c5e

Browse files
tititiou36storulf
authored andcommitted
mmc: pxamci: Fix an error handling path in pxamci_probe()
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: fa3a511 ("mmc: pxamci: call mmc_of_parse()") Signed-off-by: Christophe JAILLET <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/6d75855ad4e2470e9ed99e0df21bc30f0c925a29.1658862932.git.christophe.jaillet@wanadoo.fr Signed-off-by: Ulf Hansson <[email protected]>
1 parent 568035b commit 98d7c5e

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
@@ -648,7 +648,7 @@ static int pxamci_probe(struct platform_device *pdev)
648648

649649
ret = pxamci_of_init(pdev, mmc);
650650
if (ret)
651-
return ret;
651+
goto out;
652652

653653
host = mmc_priv(mmc);
654654
host->mmc = mmc;

0 commit comments

Comments
 (0)