linux/arch/mips/pci
Jon Derrick a3ec61c84d irqdomain/treewide: Free firmware node after domain removal
commit ec0160891e upstream.

Commit 711419e504 ("irqdomain: Add the missing assignment of
domain->fwnode for named fwnode") unintentionally caused a dangling pointer
page fault issue on firmware nodes that were freed after IRQ domain
allocation. Commit e3beca48a4 fixed that dangling pointer issue by only
freeing the firmware node after an IRQ domain allocation failure. That fix
no longer frees the firmware node immediately, but leaves the firmware node
allocated after the domain is removed.

The firmware node must be kept around through irq_domain_remove, but should be
freed it afterwards.

Add the missing free operations after domain removal where where appropriate.

Fixes: e3beca48a4 ("irqdomain/treewide: Keep firmware node unconditionally allocated")
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>	# drivers/pci
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/1595363169-7157-1-git-send-email-jonathan.derrick@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-08-19 08:16:27 +02:00
..
Makefile
fixup-ath79.c
fixup-bcm63xx.c
fixup-capcella.c
fixup-cobalt.c
fixup-emma2rh.c
fixup-fuloong2e.c
fixup-ip32.c
fixup-jmr3927.c
fixup-lantiq.c
fixup-lemote2f.c
fixup-loongson3.c
fixup-malta.c
fixup-mpc30x.c
fixup-pmcmsp.c
fixup-rbtx4927.c
fixup-rbtx4938.c
fixup-rc32434.c
fixup-sb1250.c
fixup-sni.c
fixup-tb0219.c
fixup-tb0226.c
fixup-tb0287.c
msi-octeon.c
msi-xlp.c
ops-bcm63xx.c
ops-bonito64.c
ops-emma2rh.c
ops-gt64xxx_pci0.c
ops-lantiq.c
ops-loongson2.c
ops-loongson3.c
ops-mace.c
ops-msc.c
ops-nile4.c
ops-pmcmsp.c
ops-rc32434.c
ops-sni.c
ops-tx3927.c
ops-tx4927.c
ops-vr41xx.c
pci-alchemy.c
pci-ar71xx.c
pci-ar724x.c
pci-ar2315.c
pci-bcm47xx.c
pci-bcm63xx.c
pci-bcm63xx.h
pci-bcm1480.c
pci-bcm1480ht.c
pci-emma2rh.c
pci-generic.c
pci-ip27.c
pci-ip32.c
pci-lantiq.c
pci-lantiq.h
pci-lasat.c
pci-legacy.c
pci-malta.c
pci-mt7620.c
pci-octeon.c
pci-rc32434.c
pci-rt2880.c
pci-rt3883.c
pci-sb1250.c
pci-tx4927.c
pci-tx4938.c
pci-tx4939.c
pci-virtio-guest.c
pci-vr41xx.c
pci-vr41xx.h
pci-xlp.c
pci-xlr.c
pci-xtalk-bridge.c irqdomain/treewide: Free firmware node after domain removal 2020-08-19 08:16:27 +02:00
pci.c
pcie-octeon.c