Skip to content

Commit 28c9fac

Browse files
tititiou36storulf
authored andcommitted
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: 60fdd93 ("memstick: add support for JMicron jmb38x MemoryStick host controller") Cc: [email protected] Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent 19ec6bb commit 28c9fac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/memstick/host/jmb38x_ms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ static int jmb38x_ms_probe(struct pci_dev *pdev,
941941
if (!cnt) {
942942
rc = -ENODEV;
943943
pci_dev_busy = 1;
944-
goto err_out;
944+
goto err_out_int;
945945
}
946946

947947
jm = kzalloc(sizeof(struct jmb38x_ms)

0 commit comments

Comments
 (0)