diff mbox

drm/i915: initialize pending_flip count

Message ID 20100114131732.1e5290d8@jbarnes-piketon (mailing list archive)
State Rejected
Headers show

Commit Message

Jesse Barnes Jan. 14, 2010, 9:17 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 31eb5b5..8526850 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -4336,6 +4336,7 @@  int i915_gem_init_object(struct drm_gem_object *obj)
 	INIT_LIST_HEAD(&obj_priv->list);
 	INIT_LIST_HEAD(&obj_priv->fence_list);
 	obj_priv->madv = I915_MADV_WILLNEED;
+	atomic_set(&obj_priv->pending_flip, 0);
 
 	trace_i915_gem_object_create(obj);