]> 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)
commit9460249985c56ff36c200636f17676e01b9ebd50
tree809f61ae946cd1c73b23c49c83c944c9ec34a96a
parenta0a49321df637ce4b3ae631342e84539711e28b2
irqchip/mips-gic: Remove population of irq domain names

Since commit e43e5d5fef013 ("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 ad5d7a4170bed ("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 3ed3adea150b ("irqchip/mips-gic:
Populate irq_domain names").

Fixes: e43e5d5fef013 ("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