diff options
| -rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 5615d3d3ab59..879771766973 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
| @@ -2288,9 +2288,13 @@ static int i915_ppgtt_info(struct seq_file *m, void *data) | |||
| 2288 | 2288 | ||
| 2289 | list_for_each_entry_reverse(file, &dev->filelist, lhead) { | 2289 | list_for_each_entry_reverse(file, &dev->filelist, lhead) { |
| 2290 | struct drm_i915_file_private *file_priv = file->driver_priv; | 2290 | struct drm_i915_file_private *file_priv = file->driver_priv; |
| 2291 | struct task_struct *task; | ||
| 2291 | 2292 | ||
| 2292 | seq_printf(m, "\nproc: %s\n", | 2293 | task = get_pid_task(file->pid, PIDTYPE_PID); |
| 2293 | get_pid_task(file->pid, PIDTYPE_PID)->comm); | 2294 | if (!task) |
| 2295 | return -ESRCH; | ||
| 2296 | seq_printf(m, "\nproc: %s\n", task->comm); | ||
| 2297 | put_task_struct(task); | ||
| 2294 | idr_for_each(&file_priv->context_idr, per_file_ctx, | 2298 | idr_for_each(&file_priv->context_idr, per_file_ctx, |
| 2295 | (void *)(unsigned long)m); | 2299 | (void *)(unsigned long)m); |
| 2296 | } | 2300 | } |
