mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
mmc: pxamci: Fix an error handling path in pxamci_probe()
commit98d7c5e579upstream. 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:fa3a511546("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4a211dd485
commit
13a497c3c5
|
|
@ -648,7 +648,7 @@ static int pxamci_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
ret = pxamci_of_init(pdev, mmc);
|
ret = pxamci_of_init(pdev, mmc);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
goto out;
|
||||||
|
|
||||||
host = mmc_priv(mmc);
|
host = mmc_priv(mmc);
|
||||||
host->mmc = mmc;
|
host->mmc = mmc;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user