summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 87f292e)
raw | patch | inline | side by side (parent: 87f292e)
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | |
Sat, 5 Oct 2019 11:21:01 +0000 (13:21 +0200) | ||
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
Sun, 27 Oct 2019 20:32:37 +0000 (21:32 +0100) |
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>
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 | patch | blob | history |
index bcdca9fbef51cc802d34b74a4fab19abd308b1bc..29f5021d21ea62dc83344c2c5d3ea9f6630f85e0 100644 (file)
if (!cnt) {
rc = -ENODEV;
pci_dev_busy = 1;
- goto err_out;
+ goto err_out_int;
}
jm = kzalloc(sizeof(struct jmb38x_ms)