aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2019-08-20 13:39:53 +0000
committerAlex Deucher <[email protected]>2019-08-22 03:18:38 +0000
commit5a6a4c9d1b6743268480b5b5661a35c38d4df424 (patch)
treef770f59187dca7ea7bcd3a14bea51347f3e27462 /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
parentdrm/amd/display: Lock the CRTC when setting CRC source (diff)
downloadkernel-5a6a4c9d1b6743268480b5b5661a35c38d4df424.tar.gz
kernel-5a6a4c9d1b6743268480b5b5661a35c38d4df424.zip
drm/amdgpu: prevent memory leaks in AMDGPU_CS ioctl
Error out if the AMDGPU_CS ioctl is called with multiple SYNCOBJ_OUT and/or TIMELINE_SIGNAL chunks, since otherwise the last chunk wins while the allocated array as well as the reference counts of sync objects are leaked. Signed-off-by: Nicolai Hähnle <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
0 files changed, 0 insertions, 0 deletions