]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Oct 2019 08:15:25 +0000 (09:15 +0100)
commit3477314df84152e1222b795d7227767e746d85f4
treebd1379166bd28d06345fda8da74171374dbee1fb
parent615e9f196d9e829a734a8a78aa0c52dcd4657557
memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()'

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>
drivers/memstick/host/jmb38x_ms.c