mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
DynamicTablesPkg: Fix order of assert checks
Reordered the asserts to first check if the pointer is valid before de-referencing the pointer. Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
This commit is contained in:
parent
26442d11e6
commit
653fb710ce
@ -90,10 +90,10 @@ FreeSsdtSerialPortTableEx (
|
|||||||
UINTN Index;
|
UINTN Index;
|
||||||
|
|
||||||
ASSERT (This != NULL);
|
ASSERT (This != NULL);
|
||||||
|
ASSERT (AcpiTableInfo != NULL);
|
||||||
|
ASSERT (CfgMgrProtocol != NULL);
|
||||||
ASSERT (AcpiTableInfo->TableGeneratorId == This->GeneratorID);
|
ASSERT (AcpiTableInfo->TableGeneratorId == This->GeneratorID);
|
||||||
ASSERT (AcpiTableInfo->AcpiTableSignature == This->AcpiTableSignature);
|
ASSERT (AcpiTableInfo->AcpiTableSignature == This->AcpiTableSignature);
|
||||||
ASSERT (CfgMgrProtocol != NULL);
|
|
||||||
ASSERT (AcpiTableInfo != NULL);
|
|
||||||
|
|
||||||
if ((Table == NULL) ||
|
if ((Table == NULL) ||
|
||||||
(*Table == NULL) ||
|
(*Table == NULL) ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user