]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/DpcLib: return error if failed to locate DPC protocol.
authorFu Siyuan <siyuan.fu@intel.com>
Fri, 22 Dec 2017 06:13:12 +0000 (14:13 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Fri, 22 Dec 2017 07:33:48 +0000 (15:33 +0800)
This patch updates the constructor of DpcLib to return error if failed to
locate DPC protocol.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
MdeModulePkg/Library/DxeDpcLib/DpcLib.c

index 6eda8ca0fb795550e50a9433af252dae59e53ed3..ddc3e0adda76493b08f43a306e30378f3cdcab14 100644 (file)
@@ -45,7 +45,7 @@ DpcLibConstructor (
   Status = gBS->LocateProtocol (&gEfiDpcProtocolGuid, NULL, (VOID **)&mDpc);\r
   ASSERT_EFI_ERROR (Status);\r
 \r
-  return EFI_SUCCESS;\r
+  return Status;\r
 }\r
 \r
 /**\r