]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Fix error path to unlock if the GEM context is closed
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 6 Nov 2019 14:41:55 +0000 (14:41 +0000)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 11 Nov 2019 08:29:52 +0000 (10:29 +0200)
commit054e02118cf037f90477239b92e005fa6d9b5e9f
tree6cf25bf2b63401ea87b41683902425e3445b2fbd
parente4c17868d005f5f1dea39c5703d846807611c3af
drm/i915/gem: Fix error path to unlock if the GEM context is closed

When inside the lock, remember to unlock even if you want to leave
early.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 06568f8e356d ("drm/i915: Move context management under GEM")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191106144155.25727-1-chris@chris-wilson.co.uk
(cherry picked from commit feba2b8146633390f8df44946eceb4274f7377ed)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/gem/i915_gem_context.c