aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorGokul krishna Krishnakumar <[email protected]>2023-05-08 17:18:21 -0700
committerBjorn Andersson <[email protected]>2023-05-24 19:28:57 -0700
commit210d12c8197a551caa2979be421aa42381156aec (patch)
tree4724237ad4eeb1610c4cf790b7d2d703d287f0e8 /lib/mpi/mpi-sub-ui.c
parent4b11fa4f0737aae1a3fc3cdf367acd4ebb5bc941 (diff)
soc: qcom: mdt_loader: Enhance split binary detection
It may be that the offset of the first program header lies inside the mdt's filesize, in this case the loader would incorrectly assume that the bins were not split and in this scenario the firmware authentication fails. This change updates the logic used by the mdt loader to understand whether the firmware images are split or not. It figures this out by checking if each programs header's segment lies within the file or not. Co-developed-by: Melody Olvera <[email protected]> Signed-off-by: Melody Olvera <[email protected]> Signed-off-by: Gokul krishna Krishnakumar <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions