Re: drm/i915: Fix missing unlock on error in i915_gem_init_hw()

From: Jani Nikula
Date: Fri Dec 05 2014 - 07:16:54 EST


On Fri, 05 Dec 2014, Jeremiah Mahler <jmmahler@xxxxxxxxx> 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/