]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firmware: qcom: scm: preserve assign_mem() error return value
authorMukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Thu, 7 Aug 2025 12:44:51 +0000 (18:14 +0530)
committerBjorn Andersson <andersson@kernel.org>
Mon, 11 Aug 2025 15:13:35 +0000 (10:13 -0500)
commit121fcf3c871181edce0708a49d2397cedd6ad21f
treecb3c57ecef06f1e3678991696e8f38a2b6561cee
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
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.

Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250807124451.2623019-1-mukesh.ojha@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/firmware/qcom/qcom_scm.c