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
This commit is contained in:
@@ -2849,7 +2849,7 @@ LegacyBiosInstallPciRom (
|
|||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (*RomImage == NULL) {
|
if ((RomImage == NULL) || (*RomImage == NULL)) {
|
||||||
//
|
//
|
||||||
// If PciHandle is NULL, and no OpRom is to be associated
|
// If PciHandle is NULL, and no OpRom is to be associated
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user