]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 17 Oct 2022 09:57:13 +0000 (11:57 +0200)
commitdd9c6fd1551af57694f574e771af97d43d3b6ee5
treee0853f93b2f06b9b814fbec16018689a4310ad09
parent643e3f4307871e838648fbbcd056fca6cf8a578b
mmc: pxamci: Fix another error handling path in pxamci_probe()

BugLink: https://bugs.launchpad.net/bugs/1990564
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/mmc/host/pxamci.c