]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: Fix potential memleak when failing to get irq pm
authorShawn Lin <shawn.lin@rock-chips.com>
Mon, 22 Aug 2016 08:21:52 +0000 (16:21 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 22 Aug 2016 09:22:44 +0000 (11:22 +0200)
commit856817bf10a08863d972d1c45ee4bf3d6d92c90d
treece93b8f4ded9dbc28fdea3d41ace33805dcb5618
parent70526940ca67ad5420de0c355a28a0daea4eac91
genirq: Fix potential memleak when failing to get irq pm

Obviously we should free action here if irq_chip_pm_get failed.

Fixes: 024cd304acf6: "genirq: Add runtime power management support for IRQ chips"
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Cc: Jon Hunter <jonathanh@nvidia.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Link: http://lkml.kernel.org/r/1471854112-13006-1-git-send-email-shawn.lin@rock-chips.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/manage.c