]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/gic-v2m: Fix SPI release on error path
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 22 Jun 2018 09:52:50 +0000 (10:52 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 22 Jun 2018 12:22:00 +0000 (14:22 +0200)
commitb8b2166f8bcd2553121a73de2636df1c52a18a79
tree534d8bd58961e7b5d6c8511f794b8285f493e2b8
parentb00885f264a85cbaecdea0a8c0806d4344455211
irqchip/gic-v2m: Fix SPI release on error path

On failing to allocate the required SPIs, the actual number of interrupts
should be freed and not its log2 value.

Fixes: 6b2b66f99388 ("irqchip/gic-v2m: Add PCI Multi-MSI support")
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Yang Yingliang <yangyingliang@huawei.com>
Cc: Sumit Garg <sumit.garg@linaro.org>
Link: https://lkml.kernel.org/r/20180622095254.5906-4-marc.zyngier@arm.com
drivers/irqchip/irq-gic-v2m.c