Skip to content
Commit 015dbf56 authored by Zhen Lei's avatar Zhen Lei Committed by Jakub Kicinski
Browse files

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: 2c69448b ("ehea: DLPAR memory add fix")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210528085555.9390-1-thunder.leizhen@huawei.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent ffb35c67
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment