]> 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)
commitd7b2b5dd72d4ac5118dab21650d8edd8305aceb6
tree99ee5a849ab2eb9b133870dc0d83c978b254afd5
parent521c20242f36df9a9fa8573646f49f4f66a6a2b7
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