diff --git a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c index a53b57a681..7f0ba2d18d 100644 --- a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c +++ b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c @@ -2849,7 +2849,7 @@ LegacyBiosInstallPciRom ( return EFI_UNSUPPORTED; } } else { - if (*RomImage == NULL) { + if ((RomImage == NULL) || (*RomImage == NULL)) { // // If PciHandle is NULL, and no OpRom is to be associated //