浏览代码

genirq/msi: Fix broken debug output

virq is not required to be the same for all msi descs. Use the base irq number
from the desc in the debug printk.

Reported-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Thomas Gleixner 9 年之前
父节点
当前提交
4364e1a29b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      kernel/irq/msi.c

+ 1 - 0
kernel/irq/msi.c

@@ -353,6 +353,7 @@ int msi_domain_alloc_irqs(struct irq_domain *domain, struct device *dev,
 		ops->msi_finish(&arg, 0);
 
 	for_each_msi_entry(desc, dev) {
+		virq = desc->irq;
 		if (desc->nvec_used == 1)
 			dev_dbg(dev, "irq %d for MSI\n", virq);
 		else