diff options
| author | Dan Carpenter <[email protected]> | 2025-06-25 15:22:41 +0000 |
|---|---|---|
| committer | Bjorn Andersson <[email protected]> | 2025-06-25 19:31:31 +0000 |
| commit | 9f35ab0e53ccbea57bb9cbad8065e0406d516195 (patch) | |
| tree | 0b4ce224b1ab84c5d8ffaca3be30ed2805d90699 /drivers/platform/x86/intel/pmt/class.c | |
| parent | dt-bindings: sram: qcom,imem: Add a number of missing compatibles (diff) | |
| download | kernel-9f35ab0e53ccbea57bb9cbad8065e0406d516195.tar.gz kernel-9f35ab0e53ccbea57bb9cbad8065e0406d516195.zip | |
soc: qcom: mdt_loader: Fix error return values in mdt_header_valid()
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 <[email protected]>
Reviewed-by: Konrad Dybcio <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions
