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)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 May 2021 01:12:19 +0000 (18:12 -0700)
commit015dbf5662fd689d581c0bc980711b073ca09a1a
tree6440c3da0577897186da3c2d3c82a0b2e38f2873
parentffb35c679842b471d8bc42c6986daa3b373f57b2
ehea: fix error return code in ehea_restart_qps()

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>
drivers/net/ethernet/ibm/ehea/ehea_main.c