QcomModulePkg: Correct the SingleDtHdr address
Remove the additional page from the calculation of SingleDtHdr
because of the BootParamlistPtr->DtbOffset already have calculated
this page in DTBImgCheckAndAppendDT.
Change-Id: If986d3dfc4cfffba3ea64b179fcf3510c35c5e8d
diff --git a/QcomModulePkg/Library/BootLib/BootLinux.c b/QcomModulePkg/Library/BootLib/BootLinux.c
index f83257a..ecc321a 100644
--- a/QcomModulePkg/Library/BootLib/BootLinux.c
+++ b/QcomModulePkg/Library/BootLib/BootLinux.c
@@ -471,7 +471,6 @@
return EFI_BAD_BUFFER_SIZE;
}
SingleDtHdr = (BootParamlistPtr->ImageBuffer +
- BootParamlistPtr->PageSize +
BootParamlistPtr->DtbOffset);
if (!fdt_check_header (SingleDtHdr)) {