mirror of
https://gitlab.com/qemu-project/edk2.git
synced 2025-10-30 07:56:39 +08: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:
committed by
mergify[bot]
parent
ff0edeaaa8
commit
c6cea09e9a
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user