mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
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;
|
AcpiSupportInstance->Xsdt->OemRevision = AcpiSupportInstance->Fadt3->Header.OemRevision;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
//
|
//
|
||||||
// Checksum the table
|
// Checksum the table
|
||||||
//
|
//
|
||||||
if (Checksum) {
|
if (Checksum) {
|
||||||
AcpiPlatformChecksum (
|
AcpiPlatformChecksum (
|
||||||
CurrentTableList->Table,
|
CurrentTableList->Table,
|
||||||
CurrentTableList->Table->Length,
|
CurrentTableList->Table->Length,
|
||||||
OFFSET_OF (EFI_ACPI_DESCRIPTION_HEADER,
|
OFFSET_OF (EFI_ACPI_DESCRIPTION_HEADER,
|
||||||
Checksum)
|
Checksum)
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user