]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fix pm refcounting on fence error in execbuf
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Fri, 3 Feb 2017 22:45:29 +0000 (14:45 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 4 Feb 2017 09:42:07 +0000 (09:42 +0000)
commitdd37fe396d60c7bdf3f0f8c4cb65ad035dd0d030
tree3b89fba5b2ddf8afbb4b3eccf9233ed6a0c773f6
parent194912671d2134d854b2a3c19cc3f068b2528229
drm/i915: fix pm refcounting on fence error in execbuf

Fences are creted/checked before the pm ref is taken, so if we jump to
pre_mutex_err we will uncorrectly call intel_runtime_pm_put.

v2: Massage unwind error paths

Fixes: f66c6785238c (drm/i915: Support explicit fencing for execbuf)
Testcase: igt/gem_exec_params
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1486161930-11764-1-git-send-email-daniele.ceraolospurio@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem_execbuffer.c