Skip to content

Commit

Permalink
mmc: pxamci: Fix another error handling path in pxamci_probe()
Browse files Browse the repository at this point in the history
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 <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>
  • Loading branch information
Christophe JAILLET authored and Ulf Hansson committed Aug 15, 2022
1 parent 98d7c5e commit b886f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/pxamci.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ static int pxamci_probe(struct platform_device *pdev)

ret = pxamci_init_ocr(host);
if (ret < 0)
return ret;
goto out;

mmc->caps = 0;
host->cmdat = 0;
Expand Down

0 comments on commit b886f54

Please sign in to comment.