drm/i915/active: Fix missing debug object activation
authorjsg <jsg@openbsd.org>
Fri, 31 Mar 2023 02:01:00 +0000 (02:01 +0000)
committerjsg <jsg@openbsd.org>
Fri, 31 Mar 2023 02:01:00 +0000 (02:01 +0000)
From Nirmoy Das
c355945957ef5e9bb05e0554fe4a6f92b0fcaf36 in linux-6.1.y/6.1.22
e92eb246feb9019b0b137706c934b8891cdfe3c2 in mainline linux

sys/dev/pci/drm/i915/i915_active.c

index 39c8e27..de21524 100644 (file)
@@ -92,8 +92,7 @@ static void debug_active_init(struct i915_active *ref)
 static void debug_active_activate(struct i915_active *ref)
 {
        lockdep_assert_held(&ref->tree_lock);
-       if (!atomic_read(&ref->count)) /* before the first inc */
-               debug_object_activate(ref, &active_debug_desc);
+       debug_object_activate(ref, &active_debug_desc);
 }
 
 static void debug_active_deactivate(struct i915_active *ref)