mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
SecurityPkg: Trace and return status are handled.
Added debug trace messages on LocateProtocol failure for gEfiDxeSmmReadyToLockProtocolGuid. Returned device error in case of EfiCreateProtocolNotifyEvent failure. Removed ASSERT due to if condition. Signed-off-by: Arun Subramanian Baskaran <arun.subramanian.baskaran@intel.com>
This commit is contained in:
parent
ff0edeaaa8
commit
c6cea09e9a
1 changed files with 5 additions and 1 deletions
|
|
@ -43,6 +43,7 @@ SmmReadyToLockEventCallBack (
|
|||
&Interface
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_ERROR, "Failed to locate gEfiDxeSmmReadyToLockProtocolGuid.\n"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -79,7 +80,10 @@ Tcg2PlatformDxeEntryPoint (
|
|||
&Registration
|
||||
);
|
||||
|
||||
ASSERT (Event != NULL);
|
||||
if (Event == NULL) {
|
||||
DEBUG ((DEBUG_ERROR, "Failed to create protocol notify event for SmmReadyToLockProtocol.\n"));
|
||||
return EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue