From 785e8884b03ea9fa41f5de6fd64b4dbb63609c94 Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 31 Mar 2023 02:01:00 +0000 Subject: [PATCH] drm/i915/active: Fix missing debug object activation From Nirmoy Das c355945957ef5e9bb05e0554fe4a6f92b0fcaf36 in linux-6.1.y/6.1.22 e92eb246feb9019b0b137706c934b8891cdfe3c2 in mainline linux --- sys/dev/pci/drm/i915/i915_active.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/i915/i915_active.c b/sys/dev/pci/drm/i915/i915_active.c index 39c8e27e594..de21524f9d1 100644 --- a/sys/dev/pci/drm/i915/i915_active.c +++ b/sys/dev/pci/drm/i915/i915_active.c @@ -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) -- 2.20.1