Skip to content

Commit a510bb8

Browse files
claudiubezneaKAGA-KOKO
authored andcommitted
genirq/irqdesc: Remove double locking in hwirq_show()
&desc->lock is acquired on 2 consecutive lines in hwirq_show(). This leads obviously to a deadlock. Drop the raw_spin_lock_irq() and keep guard(). Fixes: 5d964a9 ("genirq/irqdesc: Switch to lock guards") Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/20250521142541.3832130-1-claudiu.beznea.uj@bp.renesas.com
1 parent 788019e commit a510bb8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernel/irq/irqdesc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ static ssize_t hwirq_show(struct kobject *kobj, struct kobj_attribute *attr, cha
281281
struct irq_desc *desc = container_of(kobj, struct irq_desc, kobj);
282282

283283
guard(raw_spinlock_irq)(&desc->lock);
284-
raw_spin_lock_irq(&desc->lock);
285284
if (desc->irq_data.domain)
286285
return sysfs_emit(buf, "%lu\n", desc->irq_data.hwirq);
287286
return 0;

0 commit comments

Comments
 (0)