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

commit b886f54c300d31c109d2e4336b22922b64e7ba7d upstream.

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: 61951fd6cb49 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/pxamci.c