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:
Arun Subramanian Baskaran
2025-10-23 22:27:41 -04:00
committed by mergify[bot]
parent ff0edeaaa8
commit c6cea09e9a

View File

@ -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;
}