mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 14:44:28 +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@12251 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
3857083c07
commit
1b5592bf15
@ -804,7 +804,7 @@ AddTableToList (
|
|||||||
&Buffer64,
|
&Buffer64,
|
||||||
sizeof (UINT64)
|
sizeof (UINT64)
|
||||||
);
|
);
|
||||||
}
|
|
||||||
//
|
//
|
||||||
// RSDP OEM information is updated to match the FADT OEM information
|
// RSDP OEM information is updated to match the FADT OEM information
|
||||||
//
|
//
|
||||||
@ -844,6 +844,7 @@ AddTableToList (
|
|||||||
);
|
);
|
||||||
AcpiSupportInstance->Xsdt->OemRevision = AcpiSupportInstance->Fadt3->Header.OemRevision;
|
AcpiSupportInstance->Xsdt->OemRevision = AcpiSupportInstance->Fadt3->Header.OemRevision;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//
|
//
|
||||||
// Checksum the table
|
// Checksum the table
|
||||||
//
|
//
|
||||||
@ -1336,6 +1337,8 @@ DeleteTable (
|
|||||||
// Init locals
|
// Init locals
|
||||||
//
|
//
|
||||||
RemoveFromRsdt = TRUE;
|
RemoveFromRsdt = TRUE;
|
||||||
|
|
||||||
|
if (Table->Table != NULL) {
|
||||||
CurrentTableSignature = ((EFI_ACPI_COMMON_HEADER *) Table->Table)->Signature;
|
CurrentTableSignature = ((EFI_ACPI_COMMON_HEADER *) Table->Table)->Signature;
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -1369,7 +1372,7 @@ DeleteTable (
|
|||||||
//
|
//
|
||||||
// Remove the table from RSDT and XSDT
|
// 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
|
// This is a basic table, remove it from any lists and the Rsdt and/or Xsdt
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user