mirror of https://github.com/acidanthera/audk.git
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:
parent
04eb20aa85
commit
16adc27692
|
@ -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
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue