]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
genirq/PM: Always unlock IRQ descriptor in rearm_wake_irq()
authorGuenter Roeck <linux@roeck-us.net>
Tue, 11 Aug 2020 18:00:01 +0000 (11:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 11:07:17 +0000 (13:07 +0200)
commit2b9f81f7dbbe9a7ae2b52140fd65058df8b33d6a
tree0454235f386d3e7518cf3722c731bb0940964360
parentaf0506d7904eb9530da48dd0b60aa58d0d857ac8
genirq/PM: Always unlock IRQ descriptor in rearm_wake_irq()

commit e27b1636e9337d1a1d174b191e53d0f86421a822 upstream.

rearm_wake_irq() does not unlock the irq descriptor if the interrupt
is not suspended or if wakeup is not enabled on it.

Restucture the exit conditions so the unlock is always ensured.

Fixes: 3a79bc63d9075 ("PCI: irq: Introduce rearm_wake_irq()")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200811180001.80203-1-linux@roeck-us.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/irq/pm.c