Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21099537 authored by Eric Anholt's avatar Eric Anholt
Browse files

drm/i915: Correct locking in the modesetting failure path, fixing a BUG_ON.



Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent c2416fc6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1405,7 +1405,9 @@ static int i915_load_modeset_init(struct drm_device *dev,
	return 0;

destroy_ringbuffer:
	mutex_lock(&dev->struct_mutex);
	i915_gem_cleanup_ringbuffer(dev);
	mutex_unlock(&dev->struct_mutex);
out:
	return ret;
}