diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-03-31 02:01:01 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-03-31 02:01:01 +0000 |
commit | 13c3867ef71edc46a9521080550b904ff698637a (patch) | |
tree | 9cff6edc04ef617b84f0793073693c0f5cd526f7 /sys/dev | |
parent | c6c8d6c8ac3fd47db02ede7e6cb89d9536f65c58 (diff) |
drm/i915/active: Fix missing debug object activation
From Nirmoy Das
c355945957ef5e9bb05e0554fe4a6f92b0fcaf36 in linux-6.1.y/6.1.22
e92eb246feb9019b0b137706c934b8891cdfe3c2 in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/i915/i915_active.c | 3 |
1 files changed, 1 insertions, 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) |