]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ehea: fix error return code in ehea_restart_qps()
authorZhen Lei <thunder.leizhen@huawei.com>
Fri, 28 May 2021 08:55:55 +0000 (16:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:15:49 +0000 (16:15 +0200)
commit22d663bf6fcc43f67acead300884f1d98332822f
treef60a5429ccdc6b56b4671fab8e2f91ed7513f16c
parent0715ea013f6e7beb183535933ee9fbbb051285e0
ehea: fix error return code in ehea_restart_qps()

[ Upstream commit 015dbf5662fd689d581c0bc980711b073ca09a1a ]

Fix to return -EFAULT from the error handling case instead of 0, as done
elsewhere in this function.

By the way, when get_zeroed_page() fails, directly return -ENOMEM to
simplify code.

Fixes: 2c69448bbced ("ehea: DLPAR memory add fix")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210528085555.9390-1-thunder.leizhen@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/ibm/ehea/ehea_main.c