irqchip/gic-v3-its: Free collection mapping on device teardown
authorMarc Zyngier <maz@kernel.org>
Fri, 8 Nov 2019 16:57:55 +0000 (16:57 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 10 Nov 2019 18:47:50 +0000 (18:47 +0000)
commit898aa5ce6158c5ccfc256bfc17963bc81981eef8
tree9f9746961519fce0552e8eb5f13927167a1009de
parentbf93b04cd85d74c34335e76882cf8bf206caab6e
irqchip/gic-v3-its: Free collection mapping on device teardown

We allocate the collection mapping on device creation, but somehow
free it on the irqdomain free path, which is pretty inconsistent
and has led to bugs in the past.

Move it to the point where we teardown the device, making the
alloc/free symetric.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Link: https://lore.kernel.org/r/20191108165805.3071-2-maz@kernel.org
drivers/irqchip/irq-gic-v3-its.c