REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3996
The content of token should be derived from the data section of the `CmObject` instead of the object itself. This change fixed the issue by dereferencing the token value from the data buffer of input CmObject. Cc: Sami Mujawar <[email protected]> Cc: Alexei Fedorov <[email protected]> Co-authored-by: Joe Lopez <[email protected]> Signed-off-by: Kun Qin <[email protected]> Reviewed-by: Sami Mujawar <[email protected]> Reviewed-by: Pierre Gondois <[email protected]> --- Notes: v2: - Added Reviewed-by tag [Sami] - Added Reviewed-by tag [Pierre] v3: - No change. v4: - No change. DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer.c b/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer.c index 80d0aa17bc1a..84e4bb7e3bc8 100644 --- a/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer.c +++ b/DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/CmObjectTokenFixer.c @@ -60,7 +60,7 @@ TokenFixerItsGroup ( ) { ASSERT (CmObject != NULL); - ((CM_ARM_ITS_GROUP_NODE *)CmObject)->Token = Token; + ((CM_ARM_ITS_GROUP_NODE *)CmObject->Data)->Token = Token; return EFI_SUCCESS; } -- 2.37.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#92314): https://edk2.groups.io/g/devel/message/92314 Mute This Topic: https://groups.io/mt/92947265/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
