]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:06:47 +0000 (13:06 +0200)
commit8b2d7cd3fa2f1de01040ac8f20230d114dabbbea
treed0673c86e9b7ee8a1907ee06803135366958dca3
parent07b67a01208f5376aeaf7e9f75717b896a2bfb67
irqchip/gic-v2m: Fix SPI release on error path

[ Upstream commit cbaf45a6be497c272e80500e4fd9bccdf20d5050 ]

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

Fixes: de337ee30142 ("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
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/irqchip/irq-gic-v2m.c