OSDN Git Service

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)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 29 Jan 2019 15:48:51 +0000 (15:48 +0000)
commit45725e0fc3e7fe52fedb94f59806ec50e9618682
treecb491f1069fca17cfd03bdf93b8f34d7eda8c1ad
parent9791ec7df0e7b4d80706ccea8f24b6542f6059e9
irqchip/gic-v3-its: Gracefully fail on LPI exhaustion

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>
drivers/irqchip/irq-gic-v3-its.c