]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Wed, 27 May 2020 15:48:25 +0000 (17:48 +0200)
commitf0ed431f46cd8cdfb8e55b007b09e2ae7dfc21f9
treed88ccab445be3b5f4ab1faaba51a0a71390ed308
parent54ec7b55bee893add20d2896681157ef72af8a95
ipack: tpci200: fix error return code in tpci200_register()

commit 133317479f0324f6faaf797c4f5f3e9b1b36ce35 upstream.

Fix to return negative error code -ENOMEM from the ioremap() error handling
case instead of 0, as done elsewhere in this function.

Fixes: 43986798fd50 ("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