mirror of https://github.com/acidanthera/audk.git
Fix a bug by adding CoreReleaseProtocolLock.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5866 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
3b6ffb6a13
commit
fa3c419fec
|
@ -143,6 +143,7 @@ CoreConnectController (
|
|||
//
|
||||
ChildHandleBuffer = AllocatePool (ChildHandleCount * sizeof(EFI_HANDLE));
|
||||
if (ChildHandleBuffer == NULL) {
|
||||
CoreReleaseProtocolLock ();
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
}
|
||||
|
||||
|
|
|
@ -280,10 +280,10 @@ CoreReinstallProtocolInterface (
|
|||
//
|
||||
CoreNotifyProtocolEntry (ProtEntry);
|
||||
|
||||
CoreReleaseProtocolLock ();
|
||||
|
||||
Status = EFI_SUCCESS;
|
||||
|
||||
Done:
|
||||
CoreReleaseProtocolLock ();
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue