mirror of
https://github.com/torvalds/linux.git
synced 2026-10-09 20:09:02 +02:00
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: 25654a1756 ("drm/msm: Update global fault counter when faulty process has already ended")
Signed-off-by: Jie Zhang <jie.zhang@oss.qualcomm.com>
Signed-off-by: Akhil P Oommen <akhilpo@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/730662/
Message-ID: <20260605-assorted-fixes-june-v1-6-2caa04f7287c@oss.qualcomm.com>
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
This commit is contained in:
parent
bc024d325e
commit
40b793714a
|
|
@ -505,6 +505,8 @@ static void recover_worker(struct kthread_work *work)
|
|||
*/
|
||||
if (!vm->managed)
|
||||
msm_gem_vm_unusable(submit->vm);
|
||||
|
||||
put_task_struct(task);
|
||||
}
|
||||
|
||||
noreclaim_flag = memalloc_noreclaim_save();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user