[PATCH 5.4 112/244] soc: qcom: mdt_loader: Detect truncated read of segments