drm/i915: BUG_ON page refleak during unbind

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2009-09-20 21:29:47 +01:00
parent 9a1e2582d8
commit a32808c0a1

View File

@ -2004,6 +2004,7 @@ i915_gem_object_unbind(struct drm_gem_object *obj)
}
i915_gem_object_put_pages(obj);
BUG_ON(obj_priv->pages_refcount);
if (obj_priv->gtt_space) {
atomic_dec(&dev->gtt_count);