]> git.baikalelectronics.ru Git - 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)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 9 Oct 2019 09:08:03 +0000 (11:08 +0200)
commit49ad7280b1f2bca0ca02f8d04c56b40daad88d46
treeff7c75a59df16d882fa87db3f06c2e02c73305d3
parentbb2b43d0de0f11616b3e95e4ff47741e4d04aca9
memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()'

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

Goto 'err_out_int' to fix it.

Fixes: f4caa1c60d74 ("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>
drivers/memstick/host/jmb38x_ms.c