aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2015-12-17 12:39:08 +0000
committerEric Anholt <[email protected]>2015-12-17 19:40:21 +0000
commit7e5082fbc00cc157e57a70cdb6b9bbb21289afb1 (patch)
treeb66ee7e19607c54997f2599dc3e25863d4af7214 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentdrm/vc4: copy_to_user() returns the number of bytes remaining (diff)
downloadkernel-7e5082fbc00cc157e57a70cdb6b9bbb21289afb1.tar.gz
kernel-7e5082fbc00cc157e57a70cdb6b9bbb21289afb1.zip
drm/vc4: allocate enough memory in vc4_save_hang_state()
"state" is smaller than "kernel_state" so we end up corrupting memory. Fixes: 214613656b51 ('drm/vc4: Add an interface for capturing the GPU state after a hang.') Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions