summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler.h
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2020-08-09 23:34:06 +0300
committerAlex Deucher <alexander.deucher@amd.com>2020-08-11 00:19:12 +0300
commit5068ed578e34450a285fca3f9d830361b44267ad (patch)
tree03ab87907761feb27f83f1d79dd579bfcb487888 /drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler.h
parent82c2454761298a2fdaade6a253a7b034b9cfa15d (diff)
downloadlinux-5068ed578e34450a285fca3f9d830361b44267ad.tar.xz
drm: amdgpu: Use the correct size when allocating memory
When '*sgt' is allocated, we must allocated 'sizeof(**sgt)' bytes instead of 'sizeof(*sg)'. The sizeof(*sg) is bigger than sizeof(**sgt) so this wastes memory but it won't lead to corruption. Fixes: f44ffd677fb3 ("drm/amdgpu: add support for exporting VRAM using DMA-buf v3") Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler.h')
0 files changed, 0 insertions, 0 deletions