summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2016-07-04 15:32:25 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-24 10:09:41 +0200
commit7a9d6a281eb203202be17b4288a2adb75ac81f02 (patch)
treed0547202a55305d8b08ffeb1840e2512f95d68ed
parent7d05ad5e34adaeffe0a435ddcc98a9b2031d1cc4 (diff)
downloadlwn-7a9d6a281eb203202be17b4288a2adb75ac81f02.tar.gz
lwn-7a9d6a281eb203202be17b4288a2adb75ac81f02.zip
genirq/msi: Fix broken debug output
commit 4364e1a29be16b2783c0bcbc263f61236af64281 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--kernel/irq/msi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c
index 0afe671f1770..6143b2f64b95 100644
--- a/kernel/irq/msi.c
+++ b/kernel/irq/msi.c
@@ -352,6 +352,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