diff options
author | Philip Yang <Philip.Yang@amd.com> | 2021-12-16 10:59:29 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-03-02 18:40:05 -0500 |
commit | 38abd56bed580c98e4284a578380f5f70634a0fd (patch) | |
tree | 99ee5a849ab2eb9b133870dc0d83c978b254afd5 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
parent | e433d6843310a259f0be18c80de26d75b9f7fd35 (diff) | |
download | linux-38abd56bed580c98e4284a578380f5f70634a0fd.tar.gz linux-38abd56bed580c98e4284a578380f5f70634a0fd.tar.bz2 linux-38abd56bed580c98e4284a578380f5f70634a0fd.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions