drm/msm: Add missing put_task_struct() in debugfs path
authorRob Clark <robdclark@chromium.org>
Thu, 17 Mar 2022 18:45:49 +0000 (11:45 -0700)
committerRob Clark <robdclark@chromium.org>
Thu, 24 Mar 2022 15:34:35 +0000 (08:34 -0700)
Fixes: 25faf2f2e065 ("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
drivers/gpu/drm/msm/msm_gem.c

index 02b9ae6..a4f6197 100644 (file)
@@ -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;
                                }