irqchip/gic-v3-its: Gracefully fail on LPI exhaustion
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 29 Jan 2019 15:19:23 +0000 (15:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:02:34 +0000 (14:02 -0700)
commit423869f8871dee4028b67fa30f660ab43d14cfb2
tree12ea47cf829a38edd725c5c6855fc6af9dc67bc6
parentdc81cfafb4b96d83c740387ef880e720214c92ab
irqchip/gic-v3-its: Gracefully fail on LPI exhaustion

[ Upstream commit 45725e0fc3e7fe52fedb94f59806ec50e9618682 ]

In the unlikely event that we cannot find any available LPI in the
system, we should gracefully return an error instead of carrying
on with no LPI allocated at all.

Fixes: 38dd7c494cf6 ("irqchip/gic-v3-its: Drop chunk allocation compatibility")
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-gic-v3-its.c