mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
DynamicTablesPkg: DynamicTableManagerDxe: Fix NULL pointer dereference
BuildAndInstallMultipleSmbiosTables() can dereference a NULL pointer if the SMBIOS table builder returns a NULL CmObjToken array. Signed-off-by: Sarah Walker <Sarah.Walker2@arm.com>
This commit is contained in:
parent
6979b733ac
commit
3e62dbf504
1 changed files with 1 additions and 1 deletions
|
|
@ -264,7 +264,7 @@ BuildAndInstallMultipleSmbiosTables (
|
|||
Status = TableFactoryProtocol->AddSmbiosHandle (
|
||||
SmbiosProtocol,
|
||||
&TableHandle,
|
||||
CmObjToken[Index],
|
||||
CmObjToken ? CmObjToken[Index] : CM_NULL_TOKEN,
|
||||
SmbiosTableInfo->TableGeneratorId
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue