]> git.baikalelectronics.ru Git - kernel.git/commit
ipack: tpci200: fix error return code in tpci200_register()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 7 May 2020 09:42:37 +0000 (09:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 May 2020 14:32:20 +0000 (16:32 +0200)
commitccc09413494f092338acaf05111bcc0ac4c48370
treeb6b12a8dbaa198d8a17e6c96bb2767a5deb42275
parent2dd48841ac572211860a78d32594bc406b7a2db0
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: fffa51d20140 ("ipack: add error handling for ioremap_nocache")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Cc: stable <stable@vger.kernel.org>
Acked-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Link: https://lore.kernel.org/r/20200507094237.13599-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ipack/carriers/tpci200.c