firmware: qcom: scm: preserve assign_mem() error return value
Subsystems (2)
PATCH 1/1 firmware: qcom: scm: preserve assign_mem() error return value
When qcom_scm_assign_mem() fails, the error value is currently being overwritten after it is logged, resulting in the loss of the original error code. Fix this by retaining and returning the original error value as intended.
--- drivers/firmware/qcom/qcom_scm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/qcom/qcom_scm.c +1 -1
@@ -1119,7 +1119,7 @@ int qcom_scm_assign_mem(phys_addr_t mem_addr, size_t mem_sz,if (ret) {dev_err (__scm->dev,"Assign memory protection call failed %d\n" , ret); -return -EINVAL ; +return ret; } *srcvm = next_vm;
Signature · 1 line
2.50.1
Quoted 7 lines · Mukesh Ojha
When
qcom_scm_assign_mem()fails, the error value is currently being overwritten after it is logged, resulting in the loss of the original error code. Fix this by retaining and returning the original error value as intended.Signed-off-by Mukesh Ojha <[email protected]>---
Konrad
Quoted 6 lines · Mukesh Ojha
When
qcom_scm_assign_mem()fails, the error value is currently being overwritten after it is logged, resulting in the loss of the original error code. Fix this by retaining and returning the original error value as intended.
Applied, thanks!
[1/1] firmware: qcom: scm: preserve assign_mem() error return value
commit: 121fcf3c871181edce0708a49d2397cedd6ad21f
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>