]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: Unlock irq descriptor after errors
authorGuenter Roeck <linux@roeck-us.net>
Tue, 11 Aug 2020 18:00:12 +0000 (11:00 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 13 Aug 2020 07:35:59 +0000 (09:35 +0200)
commit7a0cd72e48f529b43f01725ade0398d58c35822f
tree5c0436dee6ead0a6cb7b107625ef2ed673291149
parent55fdc632871c16510c4768ec15d3b5762c206933
genirq: Unlock irq descriptor after errors

In irq_set_irqchip_state(), the irq descriptor is not unlocked after an
error is encountered. While that should never happen in practice, a buggy
driver may trigger it. This would result in a lockup, so fix it.

Fixes: 9189bdaf2a72 ("genirq: Check irq_data_get_irq_chip() return value before use")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200811180012.80269-1-linux@roeck-us.net
kernel/irq/manage.c