Fix the stack-use-after-scope error reported by the AddressSanitizer. Bug: SWDEV-291913 Change-Id: I0ffd71af8679b8bff6c363096fafe75dffcf329e [ROCm/amdsmi commit: 8c60dbebaa]
8c60dbebaa