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@12251 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ydong10 2011-09-01 08:44:08 +00:00
parent 3857083c07
commit 1b5592bf15
1 changed files with 73 additions and 70 deletions

View File

@ -804,7 +804,7 @@ AddTableToList (
&Buffer64,
sizeof (UINT64)
);
}
//
// RSDP OEM information is updated to match the FADT OEM information
//
@ -844,6 +844,7 @@ AddTableToList (
);
AcpiSupportInstance->Xsdt->OemRevision = AcpiSupportInstance->Fadt3->Header.OemRevision;
}
}
//
// Checksum the table
//
@ -1336,6 +1337,8 @@ DeleteTable (
// Init locals
//
RemoveFromRsdt = TRUE;
if (Table->Table != NULL) {
CurrentTableSignature = ((EFI_ACPI_COMMON_HEADER *) Table->Table)->Signature;
//
@ -1369,7 +1372,7 @@ DeleteTable (
//
// Remove the table from RSDT and XSDT
//
if (Table->Table != NULL) {
//
// This is a basic table, remove it from any lists and the Rsdt and/or Xsdt
//