mirror of https://github.com/acidanthera/audk.git
Check the pointer before use it.
Signed-off-by:ydong10 Reviewed-by:vanjeff git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12283 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
5c4513344a
commit
a3b4eb2933
|
@ -844,17 +844,18 @@ AddTableToList (
|
|||
);
|
||||
AcpiSupportInstance->Xsdt->OemRevision = AcpiSupportInstance->Fadt3->Header.OemRevision;
|
||||
}
|
||||
}
|
||||
//
|
||||
// Checksum the table
|
||||
//
|
||||
if (Checksum) {
|
||||
AcpiPlatformChecksum (
|
||||
CurrentTableList->Table,
|
||||
CurrentTableList->Table->Length,
|
||||
OFFSET_OF (EFI_ACPI_DESCRIPTION_HEADER,
|
||||
Checksum)
|
||||
);
|
||||
|
||||
//
|
||||
// Checksum the table
|
||||
//
|
||||
if (Checksum) {
|
||||
AcpiPlatformChecksum (
|
||||
CurrentTableList->Table,
|
||||
CurrentTableList->Table->Length,
|
||||
OFFSET_OF (EFI_ACPI_DESCRIPTION_HEADER,
|
||||
Checksum)
|
||||
);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue