]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Hand/DriverSupport.c
move header files in MdeModulePkg\Core\Dxe except DxeMain.h into their corresponding...
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Hand / DriverSupport.c
index 829215ba300a7e50eb8797a4f9ec4991967ab57d..203a6e6b044fc04d5737855c9cef27b397553570 100644 (file)
@@ -13,6 +13,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 \r
 #include "DxeMain.h"\r
+#include "Handle.h"\r
 \r
 \r
 //\r
@@ -143,6 +144,7 @@ CoreConnectController (
     //\r
     ChildHandleBuffer = AllocatePool (ChildHandleCount * sizeof(EFI_HANDLE));\r
     if (ChildHandleBuffer == NULL) {\r
+      CoreReleaseProtocolLock ();\r
       return EFI_OUT_OF_RESOURCES;\r
     }\r
 \r