irqchip/mbigen: Free msi_desc on device teardown
authorZenghui Yu <yuzenghui@huawei.com>
Wed, 8 Apr 2020 11:43:52 +0000 (19:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 08:36:20 +0000 (10:36 +0200)
commit182fa4d72a7c128a4b02b6a702eb75f8862d5382
tree7f38685168f7ca54fabb855d627f855ae0246932
parentdaefa51c43533447c1c6a7dbafd48c0387fe19c6
irqchip/mbigen: Free msi_desc on device teardown

commit edfc23f6f9fdbd7825d50ac1f380243cde19b679 upstream.

Using irq_domain_free_irqs_common() on the irqdomain free path will
leave the MSI descriptor unfreed when platform devices get removed.
Properly free it by MSI domain free function.

Fixes: 9650c60ebfec0 ("irqchip/mbigen: Create irq domain for each mbigen device")
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200408114352.1604-1-yuzenghui@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/irqchip/irq-mbigen.c