Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu/userq: Fix reference leak in amdgpu_userq_wait_ioctl

Drop reference to syncobj and timeline fence when aborting the ioctl due
output array being too small.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Fixes: a292fdecd728 ("drm/amdgpu: Implement userqueue signal/wait IOCTL")
Cc: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Tvrtko Ursulin and committed by
Alex Deucher
68951e9c 6fde4192

+2
+2
drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c
··· 877 877 dma_fence_unwrap_for_each(f, &iter, fence) { 878 878 if (WARN_ON_ONCE(num_fences >= wait_info->num_fences)) { 879 879 r = -EINVAL; 880 + dma_fence_put(fence); 880 881 goto free_fences; 881 882 } 882 883 ··· 902 901 903 902 if (WARN_ON_ONCE(num_fences >= wait_info->num_fences)) { 904 903 r = -EINVAL; 904 + dma_fence_put(fence); 905 905 goto free_fences; 906 906 } 907 907