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:
qwang12 2008-09-10 06:30:40 +00:00
parent 3b6ffb6a13
commit fa3c419fec
2 changed files with 3 additions and 2 deletions

View File

@ -143,6 +143,7 @@ CoreConnectController (
//
ChildHandleBuffer = AllocatePool (ChildHandleCount * sizeof(EFI_HANDLE));
if (ChildHandleBuffer == NULL) {
CoreReleaseProtocolLock ();
return EFI_OUT_OF_RESOURCES;
}

View File

@ -280,10 +280,10 @@ CoreReinstallProtocolInterface (
//
CoreNotifyProtocolEntry (ProtEntry);
CoreReleaseProtocolLock ();
Status = EFI_SUCCESS;
Done:
CoreReleaseProtocolLock ();
return Status;
}