Skip to content

Commit aa1d3f7

Browse files
Jie ZhangVeeresh Bagale
authored andcommitted
FROMLIST: drm/msm: Fix task_struct reference leak in recover_worker
get_pid_task() increments the task reference count, but the corresponding put_task_struct() was missing in the else branch, leaking a reference on every GPU hang recovery. Fixes: 25654a1 ("drm/msm: Update global fault counter when faulty process has already ended") Signed-off-by: Veeresh Bagale <vbagale@qti.qualcomm.com> Signed-off-by: Jie Zhang <jie.zhang@oss.qualcomm.com> Signed-off-by: Akhil P Oommen <akhilpo@oss.qualcomm.com> Link: https://lore.kernel.org/linux-arm-msm/20260605-assorted-fixes-june-v1-6-2caa04f7287c@oss.qualcomm.com Signed-off-by: Veeresh Bagale <vbagale@hu-vbagale-hyd.qualcomm.com>
1 parent 5cbf181 commit aa1d3f7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/gpu/drm/msm/msm_gpu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,8 @@ static void recover_worker(struct kthread_work *work)
504504
*/
505505
if (!vm->managed)
506506
msm_gem_vm_unusable(submit->vm);
507+
508+
put_task_struct(task);
507509
}
508510

509511
get_comm_cmdline(submit, &comm, &cmd);

0 commit comments

Comments
 (0)