Skip to content

Commit ac3e4f4

Browse files
committed
drm/msm: Add missing put_task_struct() in debugfs path
Fixes: 25faf2f ("drm/msm: Show process names in gem_describe") Signed-off-by: Rob Clark <robdclark@chromium.org> Link: https://lore.kernel.org/r/20220317184550.227991-1-robdclark@gmail.com
1 parent 7242795 commit ac3e4f4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/msm/msm_gem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,7 @@ void msm_gem_describe(struct drm_gem_object *obj, struct seq_file *m,
926926
get_pid_task(aspace->pid, PIDTYPE_PID);
927927
if (task) {
928928
comm = kstrdup(task->comm, GFP_KERNEL);
929+
put_task_struct(task);
929930
} else {
930931
comm = NULL;
931932
}

0 commit comments

Comments
 (0)