]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/userq: move wptr_obj cleanup in mqd_destroy
authorSunil Khatri <sunil.khatri@amd.com>
Mon, 25 May 2026 04:26:23 +0000 (09:56 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jun 2026 18:55:48 +0000 (14:55 -0400)
commit14ad7e1e6e2cd44f866e2dbb3f6a2b2f4a39b96d
tree9b407ea9cf65feab168a6cbca61184d823f2db68
parent5af28a22ce834544bb22efbba30ffb837098b2b8
drm/amdgpu/userq: move wptr_obj cleanup in mqd_destroy

In case when queue_create fails and mqd has already been
allocated and hence wptr_obj is not cleaned up.

So moving that cleanup part to mqd_destroy so it takes
care of all the cases of clean up and during tear down of
the queue.

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>
(cherry picked from commit 43355f62cd2ef5386c2693df537c232ea0f2ce6c)
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c