Commit a32808c0 authored by Chris Wilson's avatar Chris Wilson

drm/i915: BUG_ON page refleak during unbind

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent 9a1e2582
...@@ -2004,6 +2004,7 @@ i915_gem_object_unbind(struct drm_gem_object *obj) ...@@ -2004,6 +2004,7 @@ i915_gem_object_unbind(struct drm_gem_object *obj)
} }
i915_gem_object_put_pages(obj); i915_gem_object_put_pages(obj);
BUG_ON(obj_priv->pages_refcount);
if (obj_priv->gtt_space) { if (obj_priv->gtt_space) {
atomic_dec(&dev->gtt_count); atomic_dec(&dev->gtt_count);
......
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