Skip to contentSkip to conversation

x86: dovetail: Fix inverted debug check in lock_vector_lock

PATCH New Jan Kiszka 1 participant 1 message Mar 25, 2025 x86

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH v2 1/1 x86: dovetail: Fix inverted debug check in lock_vector_lock

From: Jan Kiszka <[email protected]>

Code and comment were not in line, but the comment actually makes more sense here, given that unlock_vector_lock will unconditionally reenable hard IRQs.

---

Changes in v2:
- spelling fixes in commit message

 arch/x86/kernel/apic/vector.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/apic/vector.c +1 -1
index a08b0dff066ac..af60f138d590b 100644
@@ -142,7 +142,7 @@ void lock_vector_lock(void)
 	 * entry. In addition, we assume that hard irqs are on as well
 	 * (which is the regular case).
 	 */
-	WARN_ON_ONCE(irq_pipeline_debug() && !hard_irqs_disabled());
+	WARN_ON_ONCE(irq_pipeline_debug() && hard_irqs_disabled());
 	hard_cond_local_irq_disable();
 	/* Used to the online set of cpus does not change
 	 * during assign_irq_vector.
Signature · 6 lines
2.43.0


-- 
Siemens AG, Foundational Technologies
Linux Expert Center