]> git.baikalelectronics.ru Git - kernel.git/commit
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:18:19 +0000 (11:18 +0200)
commit473c2caa1013e635bff73a808967dcdc6420e137
treef3aba128ec8cf7b504831ef931212c6016fa9b14
parent61970ff8bbdd1aae994d02e7d402337dd4093901
mmc: pxamci: Fix an error handling path in pxamci_probe()

commit b761d56b2ad287fbc54d1036d90b1330d39682c8 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: 467155a0d45b ("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