From 16adc276929ebabefa40d62eebd2f12ecd5c3296 Mon Sep 17 00:00:00 2001 From: li-elvin Date: Thu, 29 Sep 2011 06:35:51 +0000 Subject: Add RomImage pointer NULL check. Signed-off-by: li-elvin Reviewed-by: niruiyu git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12473 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 // -- cgit v1.2.3