diff options
author | Bjorn Andersson <[email protected]> | 2023-06-12 14:58:04 -0700 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2023-06-13 10:13:01 -0700 |
commit | 0d25da8e7e1e35bdbb521d586be1954bdedd1cca (patch) | |
tree | 6d36ac61528f9de969a9714347c69c9327d3de9a /lib/mpi/mpi-sub-ui.c | |
parent | e81a16e77259294cd4ff0a9c1fbe5aa0e311a47d (diff) |
soc: qcom: mdt_loader: Fix split image detection
The enhanced detection introduced in commit '210d12c8197a ("soc: qcom:
mdt_loader: Enhance split binary detection")' requires that all segments
lies within the file on disk.
But the Qualcomm firmware files consistently has a BSS-like segment at
the end, with a p_offset aligned to the next 4k boundary. As the p_size
is 0 and there's nothing to load, the image is not padded to cover this
(empty) segment.
Ignore zero-sized segments when determining if the image is split, to
avoid this problem.
Fixes: 210d12c8197a ("soc: qcom: mdt_loader: Enhance split binary detection")
Signed-off-by: Bjorn Andersson <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Tested-by: Dmitry Baryshkov <[email protected]> # qrb5165-rb5
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