From 2d5ac154354a192fa40f218a43f766214fdbb311 Mon Sep 17 00:00:00 2001 From: rsun3 Date: Thu, 4 Mar 2010 05:42:44 +0000 Subject: 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 --- MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'MdeModulePkg/Core') 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 -- cgit v1.2.3