From: Qinglang Miao Date: Wed, 25 Nov 2020 06:50:34 +0000 (+0800) Subject: soc: qcom: pdr: Fix error return code in pdr_register_listener X-Git-Tag: accepted/tizen/unified/20230118.172025~7409^2~4^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=769738fc49bb578e05d404b481a9241d18147d86;p=platform%2Fkernel%2Flinux-rpi.git soc: qcom: pdr: Fix error return code in pdr_register_listener Fix to return the error code -EREMOTEIO from pdr_register_listener rather than 0. Fixes: fbe639b44a82 ("soc: qcom: Introduce Protection Domain Restart helpers") Reported-by: Hulk Robot Signed-off-by: Qinglang Miao Link: https://lore.kernel.org/r/20201125065034.154217-1-miaoqinglang@huawei.com Signed-off-by: Bjorn Andersson --- diff --git a/drivers/soc/qcom/pdr_interface.c b/drivers/soc/qcom/pdr_interface.c index 209dcdc..915d5bc 100644 --- a/drivers/soc/qcom/pdr_interface.c +++ b/drivers/soc/qcom/pdr_interface.c @@ -153,7 +153,7 @@ static int pdr_register_listener(struct pdr_handle *pdr, if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { pr_err("PDR: %s register listener failed: 0x%x\n", pds->service_path, resp.resp.error); - return ret; + return -EREMOTEIO; } pds->state = resp.curr_state;