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:
ydong10 2011-09-06 07:05:06 +00:00
parent 5c4513344a
commit a3b4eb2933
1 changed files with 12 additions and 11 deletions

View File

@ -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;