]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdkfd: Fix memory leak in create_process failure
authorFelix Kuehling <felix.kuehling@amd.com>
Wed, 10 Apr 2024 19:52:10 +0000 (15:52 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Apr 2024 15:11:42 +0000 (17:11 +0200)
commitaa02d43367a9adf8c85fb382fea4171fb266c8d0
tree7b175c3d2464acd21e04608ccaad3c74a2532903
parentef13eeca7c79136bc38e21eb67322c1cbd5c40ee
drm/amdkfd: Fix memory leak in create_process failure

commit 18921b205012568b45760753ad3146ddb9e2d4e2 upstream.

Fix memory leak due to a leaked mmget reference on an error handling
code path that is triggered when attempting to create KFD processes
while a GPU reset is in progress.

Fixes: 0ab2d7532b05 ("drm/amdkfd: prepare per-process debug enable and disable")
CC: Xiaogang Chen <xiaogang.chen@amd.com>
Signed-off-by: Felix Kuehling <felix.kuehling@amd.com>
Tested-by: Harish Kasiviswanthan <Harish.Kasiviswanthan@amd.com>
Reviewed-by: Mukul Joshi <mukul.joshi@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdkfd/kfd_process.c