drm/i915: Fix context object leak for legacy contexts
authorThomas Daniel <thomas.daniel@intel.com>
Tue, 25 Nov 2014 10:39:25 +0000 (10:39 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Dec 2014 08:29:41 +0000 (09:29 +0100)
commit0794aed3028544e10997e14aa7685ec10a5b4203
tree05d6063804e936a94f9eff493817387cbf4d286f
parent8ee558d8041f3facc79a13242c624c2ca87626e7
drm/i915: Fix context object leak for legacy contexts

Dynamic context pinning for LRCs introduced a leak in legacy mode.
Reinstate context unreference in i915_gem_free_request for legacy contexts.

Leak reported by i-g-t/drv_module_reload fixed by this patch.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86507
Signed-off-by: Thomas Daniel <thomas.daniel@intel.com>
Reviewed-by: John Harrison<John.C.Harrison@Intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c