drm/amdgpu: Fix missing unlocking in an error path in amdgpu_userq_create()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 9 Jul 2025 19:02:51 +0000 (21:02 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Jul 2025 19:46:04 +0000 (15:46 -0400)
commit28c5c486380cc29e82b7747e999b3238f2887539
treea6a8bea4d7c7cd27550453ea878cf25baa45c108
parent41ab92d35ccd2d66bfb049bd34cd95f0304b0240
drm/amdgpu: Fix missing unlocking in an error path in amdgpu_userq_create()

If kasprintf() fails, some mutex still need to be released to avoid locking
issue, as already done in all other error handling path.

Fixes: c03ea34cbf88 ("drm/amdgpu: add support of debugfs for mqd information")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/all/366557fa7ca8173fd78c58336986ca56953369b9.1752087753.git.christophe.jaillet@wanadoo.fr/
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c