* struct_mutex leak in i915_load_gem_init ?
@ 2012-04-02 20:32 Konstantin Belousov
2012-04-02 21:01 ` Chris Wilson
2012-04-02 21:33 ` [PATCH] drm/i915: don't leak struct_mutex lock on ppgtt init failures Daniel Vetter
0 siblings, 2 replies; 4+ messages in thread
From: Konstantin Belousov @ 2012-04-02 20:32 UTC (permalink / raw)
To: Intel Graphics Development
[-- Attachment #1.1: Type: text/plain, Size: 187 bytes --]
Hi,
it seems that in case of any i915_gem_init_aliasing_ppgtt() failure,
after the commit d3ae08109d628d26615d7f7f4d8d53cdd8d71fd0, the struct_mutex
lock leaks from i915_load_gem_init().
[-- Attachment #1.2: Type: application/pgp-signature, Size: 196 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: struct_mutex leak in i915_load_gem_init ?
2012-04-02 20:32 struct_mutex leak in i915_load_gem_init ? Konstantin Belousov
@ 2012-04-02 21:01 ` Chris Wilson
2012-04-02 21:33 ` [PATCH] drm/i915: don't leak struct_mutex lock on ppgtt init failures Daniel Vetter
1 sibling, 0 replies; 4+ messages in thread
From: Chris Wilson @ 2012-04-02 21:01 UTC (permalink / raw)
To: Konstantin Belousov, Intel Graphics Development
On Mon, 2 Apr 2012 23:32:00 +0300, Konstantin Belousov <kostikbel@gmail.com> wrote:
> Hi,
> it seems that in case of any i915_gem_init_aliasing_ppgtt() failure,
> after the commit d3ae08109d628d26615d7f7f4d8d53cdd8d71fd0, the struct_mutex
> lock leaks from i915_load_gem_init().
Right, I should have caught that before telling Daniel the patch was ok. :(
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] drm/i915: don't leak struct_mutex lock on ppgtt init failures
2012-04-02 20:32 struct_mutex leak in i915_load_gem_init ? Konstantin Belousov
2012-04-02 21:01 ` Chris Wilson
@ 2012-04-02 21:33 ` Daniel Vetter
2012-04-03 8:15 ` Chris Wilson
1 sibling, 1 reply; 4+ messages in thread
From: Daniel Vetter @ 2012-04-02 21:33 UTC (permalink / raw)
To: Intel Graphics Development; +Cc: Daniel Vetter
Reported-by: Konstantin Belousov <kostikbel@gmail.com>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
---
drivers/gpu/drm/i915/i915_dma.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 8a62285..785f67f 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -1222,8 +1222,10 @@ static int i915_load_gem_init(struct drm_device *dev)
i915_gem_do_init(dev, 0, mappable_size, gtt_size);
ret = i915_gem_init_aliasing_ppgtt(dev);
- if (ret)
+ if (ret) {
+ mutex_unlock(&dev->struct_mutex);
return ret;
+ }
} else {
/* Let GEM Manage all of the aperture.
*
--
1.7.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/i915: don't leak struct_mutex lock on ppgtt init failures
2012-04-02 21:33 ` [PATCH] drm/i915: don't leak struct_mutex lock on ppgtt init failures Daniel Vetter
@ 2012-04-03 8:15 ` Chris Wilson
0 siblings, 0 replies; 4+ messages in thread
From: Chris Wilson @ 2012-04-03 8:15 UTC (permalink / raw)
To: Intel Graphics Development; +Cc: Daniel Vetter
On Mon, 2 Apr 2012 23:33:03 +0200, Daniel Vetter <daniel.vetter@ffwll.ch> wrote:
> Reported-by: Konstantin Belousov <kostikbel@gmail.com>
> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Never twice wrong?
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-03 8:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-02 20:32 struct_mutex leak in i915_load_gem_init ? Konstantin Belousov
2012-04-02 21:01 ` Chris Wilson
2012-04-02 21:33 ` [PATCH] drm/i915: don't leak struct_mutex lock on ppgtt init failures Daniel Vetter
2012-04-03 8:15 ` Chris Wilson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.