summaryrefslogtreecommitdiff
path: root/rust/kernel/firmware.rs
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2025-06-25 10:22:41 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-28 16:34:38 +0200
commite69d24d4a725765f7fbda9af6d12ecbaaa31c5e5 (patch)
tree77a924c0d986c856e10029b60a5c0cf300f45d44 /rust/kernel/firmware.rs
parent3a0dc1f487c30521a0fba0b935d0886b9b1984a5 (diff)
soc: qcom: mdt_loader: Fix error return values in mdt_header_valid()
commit 9f35ab0e53ccbea57bb9cbad8065e0406d516195 upstream. This function is supposed to return true for valid headers and false for invalid. In a couple places it returns -EINVAL instead which means the invalid headers are counted as true. Change it to return false. Fixes: 9f9967fed9d0 ("soc: qcom: mdt_loader: Ensure we don't read past the ELF header") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://lore.kernel.org/r/db57c01c-bdcc-4a0f-95db-b0f2784ea91f@sabinyo.mountain Signed-off-by: Bjorn Andersson <andersson@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/kernel/firmware.rs')
0 files changed, 0 insertions, 0 deletions