[PATCH 5.12 278/677] soc: qcom: mdt_loader: Detect truncated read of segments