diff options
author | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-29 06:35:51 +0000 |
---|---|---|
committer | li-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-29 06:35:51 +0000 |
commit | 16adc276929ebabefa40d62eebd2f12ecd5c3296 (patch) | |
tree | 95c32fb4fee3401f44bb6a5663b3c0f210e873be /IntelFrameworkModulePkg | |
parent | 04eb20aa85f658b86dd8b6b4fc261d2c9ff2e6a3 (diff) | |
download | edk2-platforms-16adc276929ebabefa40d62eebd2f12ecd5c3296.tar.xz |
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
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r-- | IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyPci.c | 2 |
1 files changed, 1 insertions, 1 deletions
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
//
|