]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
Fix a bug in LMFA which may potentially impact OS S3.
[mirror_edk2.git] / MdeModulePkg / Core / Pei / Dispatcher / Dispatcher.c
index eed0c1cdc9daf85a77e7670833f9685c660d34f9..d96182cd972b0f82ae63114ea9b6e80d03f659fa 100644 (file)
@@ -796,7 +796,7 @@ PeiDispatcher (
                       ));\r
               DEBUG_CODE_END ();\r
               \r
-              if (PcdGet64(PcdLoadModuleAtFixAddressEnable) != 0) {\r
+              if (PcdGet64(PcdLoadModuleAtFixAddressEnable) != 0 && (Private->HobList.HandoffInformationTable->BootMode != BOOT_ON_S3_RESUME)) {\r
                 //\r
                 // Loading Module at Fixed Address is enabled\r
                 //\r