]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add RomImage pointer NULL check.
authorli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 29 Sep 2011 06:35:51 +0000 (06:35 +0000)
committerli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 29 Sep 2011 06:35:51 +0000 (06:35 +0000)
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

index a53b57a681d0365563b6e748bc511aeae230ac89..7f0ba2d18d9197c0d1b0f8a6a1fd7ab3f292e47a 100644 (file)
@@ -2849,7 +2849,7 @@ LegacyBiosInstallPciRom (
       return EFI_UNSUPPORTED;\r
     }\r
   } else {\r
-    if (*RomImage == NULL) {\r
+    if ((RomImage == NULL) || (*RomImage == NULL)) {\r
       //\r
       // If PciHandle is NULL, and no OpRom is to be associated\r
       //\r