Re: [PATCH] drm/amdgpu: prevent memory leaks in AMDGPU_CS ioctl

2019-08-21 Thread Christian König
Am 21.08.19 um 16:29 schrieb Haehnle, Nicolai: 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ähn

[PATCH] drm/amdgpu: prevent memory leaks in AMDGPU_CS ioctl

2019-08-21 Thread Haehnle, Nicolai
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 --- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c |