Skip to content
Snippets Groups Projects
Commit 10f624ef authored by Michael Chen's avatar Michael Chen Committed by Alex Deucher
Browse files

drm/amdkfd: Reconcile the definition and use of oem_id in struct kfd_topology_device


Currently oem_id is defined as uint8_t[6] and casted to uint64_t*
in some use case. This would lead code scanner to complain about
access beyond. Re-define it in union to enforce 8-byte size and
alignment to avoid potential issue.

Signed-off-by: default avatarMichael Chen <michael.chen@amd.com>
Reviewed-by: default avatarFelix Kuehling <felix.kuehling@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c4dcb47d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment