diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2016-07-04 15:32:25 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-24 10:09:41 +0200 |
commit | 7a9d6a281eb203202be17b4288a2adb75ac81f02 (patch) | |
tree | d0547202a55305d8b08ffeb1840e2512f95d68ed | |
parent | 7d05ad5e34adaeffe0a435ddcc98a9b2031d1cc4 (diff) | |
download | lwn-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.c | 1 |
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 |