mirror of
https://github.com/openbsd/src.git
synced 2026-06-18 15:23:33 +02:00
drm/amdgpu/userq: Fix reference leak in amdgpu_userq_wait_ioctl
From Tvrtko Ursulin 762f47e2b824383d5be65eee2c40a1269b7d50c8 in linux-6.18.y/6.18.19 49abfa812617a7f2d0132c70d23ac98b389c6ec1 in mainline linux
This commit is contained in:
@@ -908,6 +908,7 @@ int amdgpu_userq_wait_ioctl(struct drm_device *dev, void *data,
|
||||
dma_fence_unwrap_for_each(f, &iter, fence) {
|
||||
if (num_fences >= wait_info->num_fences) {
|
||||
r = -EINVAL;
|
||||
dma_fence_put(fence);
|
||||
goto free_fences;
|
||||
}
|
||||
|
||||
@@ -932,6 +933,7 @@ int amdgpu_userq_wait_ioctl(struct drm_device *dev, void *data,
|
||||
|
||||
if (num_fences >= wait_info->num_fences) {
|
||||
r = -EINVAL;
|
||||
dma_fence_put(fence);
|
||||
goto free_fences;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user