diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/i915_gem.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |