Linux/linux 1a701eadrivers/gpu/drm/amd/amdgpu amdgpu_cs.c

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 <nicolai.haehnle at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
DeltaFile
+7-2drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
+7-21 files

UnifiedSplitRaw