[PATCH 6.6 365/587] soc: qcom: mdt_loader: Ensure we dont read past the ELF header