From: rsun3 Date: Thu, 4 Mar 2010 05:42:44 +0000 (+0000) Subject: Fix a bug that a NULL pointer may be dereferenced. X-Git-Tag: edk2-stable201903~16158 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=2d5ac154354a192fa40f218a43f766214fdbb311 Fix a bug that a NULL pointer may be dereferenced. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10178 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c b/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c index ff7eff73bf..65fd328bfe 100644 --- a/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c +++ b/MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c @@ -1109,11 +1109,11 @@ SmmIplEntry ( ); if (!EFI_ERROR (Status) && LMFAConfigurationTable != NULL) { LMFAConfigurationTable->SmramBase = mCurrentSmramRange->CpuStart; + // + // Print the SMRAM base + // + DEBUG ((EFI_D_INFO, "LOADING MODULE FIXED INFO: TSEG BASE is %x. \n", LMFAConfigurationTable->SmramBase)); } - // - // Print the SMRAM base - // - DEBUG ((EFI_D_INFO, "LOADING MODULE FIXED INFO: TSEG BASE is %x. \n", LMFAConfigurationTable->SmramBase)); } // // Load SMM Core into SMRAM and execute it from SMRAM