]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/mips-gic: Remove population of irq domain names
authorMatt Redfearn <matt.redfearn@imgtec.com>
Tue, 18 Jul 2017 07:39:21 +0000 (08:39 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Jul 2017 07:45:28 +0000 (09:45 +0200)
commit3d7eaeea6669cedfc33df12cbc3d1a1185265f4d
tree809f61ae946cd1c73b23c49c83c944c9ec34a96a
parent67698747c4b6c0f8df5ab3d546a32bcd129217ba
irqchip/mips-gic: Remove population of irq domain names

Since commit be4cadc24b247 ("genirq: Allow fwnode to carry name
information only") the irqdomain core sets the names of irq domains.
When the name is allocated the new IRQ_DOMAIN_NAME_ALLOCATED flag is
set. Replacing the allocated name with a constant one is not a good
idea, since calling the new irq_domain_update_bus_token() API, added to
the MIPS GIC driver by commit 182978f2fc557 ("irqchip/MSI: Use
irq_domain_update_bus_token instead of an open coded access") will
attempt to kfree the pointer, and result in a kernel OOPS.

Fix this by removing the names, now that they are set by the irqdomain
core. This effectively reverts commit 61af21d11c14 ("irqchip/mips-gic:
Populate irq_domain names").

Fixes: be4cadc24b247 ("genirq: Allow fwnode to carry name information only")
Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: linux-mips@linux-mips.org
Cc: Jason Cooper <jason@lakedaemon.net>
Link: http://lkml.kernel.org/r/1500363561-32213-1-git-send-email-matt.redfearn@imgtec.com
drivers/irqchip/irq-mips-gic.c