summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-09-20 21:29:47 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-09-23 01:10:21 +0100
commita32808c0a1244a52038bb94a3efcdd6a64a31a5b (patch)
tree3c139a2191687cefb7217a6245e78072c8280435 /drivers
parent9a1e2582d8d397500d5241d1543709046e0f05ff (diff)
downloadop-kernel-dev-a32808c0a1244a52038bb94a3efcdd6a64a31a5b.zip
op-kernel-dev-a32808c0a1244a52038bb94a3efcdd6a64a31a5b.tar.gz
drm/i915: BUG_ON page refleak during unbind
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c1
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 874cce6..93b4232 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)
}
i915_gem_object_put_pages(obj);
+ BUG_ON(obj_priv->pages_refcount);
if (obj_priv->gtt_space) {
atomic_dec(&dev->gtt_count);
OpenPOWER on IntegriCloud