Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1670118

[patch 04/55] genirq/msi: Prevent overwriting domain name

From Thomas Gleixner <tglx@linutronix.de>
Newsgroups linux.kernel
Subject [patch 04/55] genirq/msi: Prevent overwriting domain name
Date 2017-06-20 02:20 +0200
Message-ID <tUf3I-1jp-35@gated-at.bofh.it> (permalink)
References <tUeKl-Xe-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Prevent overwriting an already assigned domain name. Remove the extra check
for chip->name, because if domain->name is NULL overwriting it with NULL is
not a problem.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 kernel/irq/msi.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/kernel/irq/msi.c
+++ b/kernel/irq/msi.c
@@ -274,7 +274,8 @@ struct irq_domain *msi_create_irq_domain
 
 	domain = irq_domain_create_hierarchy(parent, IRQ_DOMAIN_FLAG_MSI, 0,
 					     fwnode, &msi_domain_ops, info);
-	if (domain && info->chip && info->chip->name)
+
+	if (domain && !domain->name && info->chip)
 		domain->name = info->chip->name;
 
 	return domain;

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[patch 00/55] genirq: Debuggability,  consolidation and managed affinities Thomas Gleixner <tglx@linutronix.de> - 2017-06-20 02:20 +0200
  [patch 01/55] x86/apic: Add name to irq chip Thomas Gleixner <tglx@linutronix.de> - 2017-06-20 02:20 +0200
    [tip:irq/core] x86/apic: Add name to irq chip tip-bot for Thomas Gleixner <tipbot@zytor.com> - 2017-06-22 18:50 +0200
  [patch 04/55] genirq/msi: Prevent overwriting domain name Thomas Gleixner <tglx@linutronix.de> - 2017-06-20 02:20 +0200
    [tip:irq/core] genirq/msi: Prevent overwriting domain name tip-bot for Thomas Gleixner <tipbot@zytor.com> - 2017-06-22 18:50 +0200
  Re: [patch 00/55] genirq: Debuggability, consolidation and managed         affinities Christoph Hellwig <hch@lst.de> - 2017-06-20 11:30 +0200

csiph-web