diff options
author | Mukesh Ojha <mukesh.ojha@oss.qualcomm.com> | 2025-08-07 18:14:51 +0530 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2025-08-11 10:13:35 -0500 |
commit | 121fcf3c871181edce0708a49d2397cedd6ad21f (patch) | |
tree | cb3c57ecef06f1e3678991696e8f38a2b6561cee /lib/memory-notifier-error-inject.c | |
parent | 8f5ae30d69d7543eee0d70083daf4de8fe15d585 (diff) |
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>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions