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: remove queue from doorbell xarray

In case of failure in xa_alloc, remove the queue during
clean up from the userq_doorbell_xa.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Sunil Khatri and committed by
Alex Deucher
f0e46fd0 b7ac7746

+1
+1
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
··· 865 865 if (r) { 866 866 drm_file_err(uq_mgr->file, "Failed to allocate a queue id\n"); 867 867 amdgpu_userq_fence_driver_free(queue); 868 + xa_erase_irq(&adev->userq_doorbell_xa, index); 868 869 uq_funcs->mqd_destroy(queue); 869 870 kfree(queue); 870 871 r = -ENOMEM;