]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 5 Oct 2019 11:21:01 +0000 (13:21 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 18:04:55 +0000 (19:04 +0100)
commitdef61b4871d179fe35c14020adf15e2f75bf5e7d
tree6912c3ebc44160115290dc108fd2c37a412b2b38
parentc8e1ede92012c3f91b6b56ae05f1618b1e246f1e
memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()'

BugLink: https://bugs.launchpad.net/bugs/1851876
commit 28c9fac09ab0147158db0baeec630407a5e9b892 upstream.

If 'jmb38x_ms_count_slots()' returns 0, we must undo the previous
'pci_request_regions()' call.

Goto 'err_out_int' to fix it.

Fixes: 60fdd931d577 ("memstick: add support for JMicron jmb38x MemoryStick host controller")
Cc: stable@vger.kernel.org
Signed-off-by: Christophe JAILLET <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: Khalid Elmously <khalid.elmously@canonical.com>
drivers/memstick/host/jmb38x_ms.c