[Intel-gfx] drm/i915: Fix missing unlock on error in i915_gem_init_hw()

Jani Nikula jani.nikula at intel.com
Fri Dec 5 04:17:41 PST 2014


On Fri, 05 Dec 2014, Jeremiah Mahler <jmmahler at gmail.com> wrote:
> There are other places in i915_gem_init_hw() where it returns without
> unlocking the mutex.  Why is it only necessary here and not any of the
> other places?

There's probably some rebase/merge confusion going on. The following
patch is against drm-intel-next-queued where the problem is
present. Thanks for reporting this.

BR,
Jani.


Jani Nikula (1):
  drm/i915: release struct_mutex on the i915_gem_init_hw fail path

 drivers/gpu/drm/i915/i915_gem.c | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

-- 
2.1.3




More information about the Intel-gfx mailing list