diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-09-20 16:29:47 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-09-22 20:10:21 -0400 |
commit | a32808c0a1244a52038bb94a3efcdd6a64a31a5b (patch) | |
tree | 3c139a2191687cefb7217a6245e78072c8280435 /drivers/gpu | |
parent | 9a1e2582d8d397500d5241d1543709046e0f05ff (diff) |
drm/i915: BUG_ON page refleak during unbind
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 874cce62f51a..93b4232ee280 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -2004,6 +2004,7 @@ i915_gem_object_unbind(struct drm_gem_object *obj) | |||
2004 | } | 2004 | } |
2005 | 2005 | ||
2006 | i915_gem_object_put_pages(obj); | 2006 | i915_gem_object_put_pages(obj); |
2007 | BUG_ON(obj_priv->pages_refcount); | ||
2007 | 2008 | ||
2008 | if (obj_priv->gtt_space) { | 2009 | if (obj_priv->gtt_space) { |
2009 | atomic_dec(&dev->gtt_count); | 2010 | atomic_dec(&dev->gtt_count); |