Skip to contentSkip to conversation

drm/msm: Add missing put_task_struct() in debugfs path

PATCH New Rob Clark 1 participant 1 message Mar 17, 2022

Subsystems (3)
lore
Share & tools
lore

Rob Clark

author
#0 lore raw

PATCH 1/1 drm/msm: Add missing put_task_struct() in debugfs path

From: Rob Clark <[email protected]>

Fixes 25faf2f2e065 ("drm/msm: Show process names in gem_describe")
---
 drivers/gpu/drm/msm/msm_gem.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/msm/msm_gem.c +1 -0
index 02b9ae65a96a..a4f61972667b 100644
@@ -926,6 +926,7 @@ void msm_gem_describe(struct drm_gem_object *obj, struct seq_file *m,
 					get_pid_task(aspace->pid, PIDTYPE_PID);
 				if (task) {
 					comm = kstrdup(task->comm, GFP_KERNEL);
+					put_task_struct(task);
 				} else {
 					comm = NULL;
 				}
Signature · 1 line
2.35.1