]> git.proxmox.com Git - mirror_edk2.git/commit
DynamicTablesPkg: Fix order of assert checks
authorSami Mujawar <sami.mujawar@arm.com>
Thu, 3 Sep 2020 10:45:07 +0000 (11:45 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 21 Oct 2020 13:33:03 +0000 (13:33 +0000)
commit653fb710ce2de21544e38ae81941eba01c94426a
tree278246f853831ab02acf5c731f5aebd5a45f3116
parent26442d11e620a9e81c019a24a4ff38441c64ba10
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>
DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtSerialPortLibArm/SsdtSerialPortGenerator.c