提交 a32808c0 编写于 作者: C Chris Wilson

drm/i915: BUG_ON page refleak during unbind

Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册