From 06fca749566b2b12a33a7501ee7aa5ea0fb5f412 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 24 Feb 2013 19:52:44 +0100 Subject: Bring i915_gem_object_move_to_active() a bit more in line with Linux. --- sys/dev/pci/drm/i915_gem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci/drm') diff --git a/sys/dev/pci/drm/i915_gem.c b/sys/dev/pci/drm/i915_gem.c index 115d778bc77..d801c1b73e6 100644 --- a/sys/dev/pci/drm/i915_gem.c +++ b/sys/dev/pci/drm/i915_gem.c @@ -812,11 +812,12 @@ i915_gem_object_move_to_active(struct drm_i915_gem_object *obj, seqno = i915_gem_next_request_seqno(ring); + BUG_ON(ring == NULL); obj->ring = ring; /* Add a reference if we're newly entering the active list. */ if (!obj->active) { - drm_ref(&obj->base.uobj); + drm_gem_object_reference(&obj->base); obj->active = 1; } -- cgit v1.2.3