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

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