Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 1d2ac403ae3b(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

authored by

Wei Yongjun and committed by
Daniel Vetter
b0212486 c02726ff

+2 -2
+2 -2
drivers/gpu/drm/i915/i915_debugfs.c
··· 2393 2393 task = get_pid_task(file->pid, PIDTYPE_PID); 2394 2394 if (!task) { 2395 2395 ret = -ESRCH; 2396 - goto out_put; 2396 + goto out_unlock; 2397 2397 } 2398 2398 seq_printf(m, "\nproc: %s\n", task->comm); 2399 2399 put_task_struct(task); 2400 2400 idr_for_each(&file_priv->context_idr, per_file_ctx, 2401 2401 (void *)(unsigned long)m); 2402 2402 } 2403 + out_unlock: 2403 2404 mutex_unlock(&dev->filelist_mutex); 2404 2405 2405 - out_put: 2406 2406 intel_runtime_pm_put(dev_priv); 2407 2407 mutex_unlock(&dev->struct_mutex); 2408 2408