Skip to content

Commit 1333174

Browse files
Wei Yongjungregkh
authored andcommitted
ipack: tpci200: fix error return code in tpci200_register()
Fix to return negative error code -ENOMEM from the ioremap() error handling case instead of 0, as done elsewhere in this function. Fixes: 4398679 ("ipack: add error handling for ioremap_nocache") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Cc: stable <[email protected]> Acked-by: Samuel Iglesias Gonsalvez <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0bedaa2 commit 1333174

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/ipack/carriers/tpci200.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ static int tpci200_register(struct tpci200_board *tpci200)
306306
"(bn 0x%X, sn 0x%X) failed to map driver user space!",
307307
tpci200->info->pdev->bus->number,
308308
tpci200->info->pdev->devfn);
309+
res = -ENOMEM;
309310
goto out_release_mem8_space;
310311
}
311312

0 commit comments

Comments
 (0)