mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
powerpc/pseries: Fix MSI-X interrupt querying
We need to increment i in the loop that queries what interrupts firmware gave us, otherwise we'll incorrectly use the first value over and over. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
c37682d907
commit
e27ed698b8
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ static int rtas_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)
|
|||
|
||||
i = 0;
|
||||
list_for_each_entry(entry, &pdev->msi_list, list) {
|
||||
hwirq = rtas_query_irq_number(pdn, i);
|
||||
hwirq = rtas_query_irq_number(pdn, i++);
|
||||
if (hwirq < 0) {
|
||||
pr_debug("rtas_msi: error (%d) getting hwirq\n", rc);
|
||||
return hwirq;
|
||||
|
|
|
|||
Loading…
Reference in a new issue