]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: fix handling in amdgpu_userq_create
authorChristian König <christian.koenig@amd.com>
Mon, 27 Apr 2026 14:31:31 +0000 (16:31 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 May 2026 16:25:32 +0000 (12:25 -0400)
commitb6fe4ff340560ecf39e10733366f85832550699a
tree2c5ba11e469f31fa95e38c1c93af4a1bce3f758b
parentd093c01d30fc32cb82458731c33fa2a787ff1e7b
drm/amdgpu: fix handling in amdgpu_userq_create

Well mostly the same issues the other code had as well:

1. Memory allocation while holding the userq_mutex lock is forbidden!
2. Things were created/started/published in the wrong order.
3. The reset lock was taken in the wrong order and seems to be
   unecessary in the first place.
4. Error messages on invalid input parameters can spam the logs.
5. Error messages on memory allocation failures are usually superflous
   as well.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 89e50de5654dbe7a137e03d78629542e17ba7202)
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c