Commit e02f14cd authored by Daniel Vetter's avatar Daniel Vetter

drm/i915: don't leak struct_mutex lock on ppgtt init failures

Reported-by: default avatarKonstantin Belousov <kostikbel@gmail.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-Off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 650dc07e
...@@ -1222,8 +1222,10 @@ static int i915_load_gem_init(struct drm_device *dev) ...@@ -1222,8 +1222,10 @@ static int i915_load_gem_init(struct drm_device *dev)
i915_gem_do_init(dev, 0, mappable_size, gtt_size); i915_gem_do_init(dev, 0, mappable_size, gtt_size);
ret = i915_gem_init_aliasing_ppgtt(dev); ret = i915_gem_init_aliasing_ppgtt(dev);
if (ret) if (ret) {
mutex_unlock(&dev->struct_mutex);
return ret; return ret;
}
} else { } else {
/* Let GEM Manage all of the aperture. /* Let GEM Manage all of the aperture.
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment