From: Sami Mujawar <[email protected]> Update the Token Fixer to return objects other than Arm Namespace objects as unsupported.
Cc: Pierre Gondois <[email protected]> Cc: Yeo Reum Yun <[email protected]> Cc: AbdulLateef Attar <[email protected]> Cc: Jeshua Smith <[email protected]> Cc: Jeff Brasen <[email protected]> Cc: Girish Mahadevan <[email protected]> Cc: Leif Lindholm <[email protected]> Cc: Meenakshi Aggarwal <[email protected]> Signed-off-by: Sami Mujawar <[email protected]> Signed-off-by: Pierre Gondois <[email protected]> --- .../Common/DynamicPlatRepoLib/CmObjectTokenFixer.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer.c b/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer.c index 9a6ab2a274aa..bbbb81ea31b0 100644 --- a/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer.c +++ b/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer.c @@ -209,12 +209,15 @@ FixupCmObjectSelfToken ( CM_OBJECT_TOKEN_FIXER TokenFixerFunc; CM_OBJECT_ID ArmNamespaceObjId; + if (CmObjDesc == NULL) { + ASSERT (0); + return EFI_INVALID_PARAMETER; + } + // Only support Arm objects for now. - if ((CmObjDesc == NULL) || - (GET_CM_NAMESPACE_ID (CmObjDesc->ObjectId) != EObjNameSpaceArm)) - { + if (GET_CM_NAMESPACE_ID (CmObjDesc->ObjectId) != EObjNameSpaceArm) { ASSERT (0); - return EFI_INVALID_PARAMETER; + return EFI_UNSUPPORTED; } ArmNamespaceObjId = GET_CM_OBJECT_ID (CmObjDesc->ObjectId); -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116967): https://edk2.groups.io/g/devel/message/116967 Mute This Topic: https://groups.io/mt/105067972/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
