Skip to content

Commit fa03587

Browse files
seehearfeelMarc Zyngier
authored andcommitted
irqchip/loongson-liointc: Fix potential dead lock
In the function liointc_set_type(), we need to call the function irq_gc_unlock_irqrestore() before returning. Fixes: dbb1522 ("irqchip: Add driver for Loongson I/O Local Interrupt Controller") Reported-by: Jianmin Lv <[email protected]> Signed-off-by: Tiezhu Yang <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b10cbca commit fa03587

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/irqchip/irq-loongson-liointc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ static int liointc_set_type(struct irq_data *data, unsigned int type)
114114
liointc_set_bit(gc, LIOINTC_REG_INTC_POL, mask, false);
115115
break;
116116
default:
117+
irq_gc_unlock_irqrestore(gc, flags);
117118
return -EINVAL;
118119
}
119120
irq_gc_unlock_irqrestore(gc, flags);

0 commit comments

Comments
 (0)