]> git.proxmox.com Git - mirror_edk2.git/commitdiff
PeiCore: Remove assertion when failing to load PE image
authorRay Ni <ray.ni@intel.com>
Sat, 1 May 2021 10:42:36 +0000 (18:42 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 16 Jun 2021 07:51:00 +0000 (07:51 +0000)
EFI_PEI_LOAD_FILE_PPI is invoked by DxeIpl for loading DxeCore.
It's possible that the instance produced by PeiCore fails to load but
other instances of EFI_PEI_LOAD_FILE_PPI can load.

Signed-off-by: Ray Ni <ray.ni@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Acked-by: Hao A Wu <hao.a.wu@intel.com>
Cc: Dandan Bi <dandan.bi@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
MdeModulePkg/Core/Pei/Image/Image.c

index 1d15774527474474a7c0b6972bef5639990066e7..5af3895191a5da67d9b2e396f08bf476251e0c43 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Pei Core Load Image Support\r
 \r
-Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>\r
 SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -661,9 +661,6 @@ PeiLoadImageLoadImage (
     &ImageEntryPoint\r
   );\r
 \r
-  ASSERT_EFI_ERROR (Status);\r
-\r
-\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r