[PATCH 5.10 222/530] soc: qcom: mdt_loader: Detect truncated read of segments