Skip to content

Commit cab1032

Browse files
Wei Yongjunjnikula
authored andcommitted
drm/i915: Fix missing unlock on error in i915_ppgtt_info()
Add the missing unlock before return from function i915_ppgtt_info() in the error handling case. Fixes: 1d2ac40(drm: Protect dev->filelist with its own mutex) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1465861320-26221-1-git-send-email-weiyj_lk@163.com (cherry picked from commit b021248) Signed-off-by: Jani Nikula <jani.nikula@intel.com>
1 parent 6b9dc6a commit cab1032

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/i915/i915_debugfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2365,16 +2365,16 @@ static int i915_ppgtt_info(struct seq_file *m, void *data)
23652365
task = get_pid_task(file->pid, PIDTYPE_PID);
23662366
if (!task) {
23672367
ret = -ESRCH;
2368-
goto out_put;
2368+
goto out_unlock;
23692369
}
23702370
seq_printf(m, "\nproc: %s\n", task->comm);
23712371
put_task_struct(task);
23722372
idr_for_each(&file_priv->context_idr, per_file_ctx,
23732373
(void *)(unsigned long)m);
23742374
}
2375+
out_unlock:
23752376
mutex_unlock(&dev->filelist_mutex);
23762377

2377-
out_put:
23782378
intel_runtime_pm_put(dev_priv);
23792379
mutex_unlock(&dev->struct_mutex);
23802380

0 commit comments

Comments
 (0)