]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 13 Aug 2021 07:45:39 +0000 (09:45 +0200)
commitd04f562e83710e1f1cf93ffbfb4b4b6f68fff3ce
treec2e9aa64d671e34592ad11db312bfe9538dc8c76
parent57dd7a241ca5a15cba93cb3d9aff73181e606d0e
ehea: fix error return code in ehea_restart_qps()

BugLink: https://bugs.launchpad.net/bugs/1938199
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/ibm/ehea/ehea_main.c