mmc: pxamci: Fix an error handling path in pxamci_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 26 Jul 2022 19:15:43 +0000 (21:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:39:55 +0000 (11:39 +0200)
commit6c4541d6b8813eaab3bc3d76f4c8f0033c210d00
treec77f93ec5c0b708ed3ca920217d7fbb92d003079
parent8b7ed38c38e1ad2ccb40102b0194c24e9c30d7bc
mmc: pxamci: Fix an error handling path in pxamci_probe()

commit 98d7c5e5792b8ce3e1352196dac7f404bb1b46ec upstream.

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: fa3a5115469c ("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>
drivers/mmc/host/pxamci.c