]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Correct SMI event read size
authorPhilip Yang <Philip.Yang@amd.com>
Thu, 16 Dec 2021 15:59:29 +0000 (10:59 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Mar 2022 23:40:05 +0000 (18:40 -0500)
commit38abd56bed580c98e4284a578380f5f70634a0fd
tree99ee5a849ab2eb9b133870dc0d83c978b254afd5
parente433d6843310a259f0be18c80de26d75b9f7fd35
drm/amdkfd: Correct SMI event read size

sizeof(buf) is 8 bytes because it is defined as unsigned char *buf,
each SMI event read only copy max 8 bytes to user buffer. Correct this
by using the buf allocate size.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c