mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-18 10:58:50 -05:00
dmaengine: ae4dma: Use the MSI count and its corresponding IRQ number
Instead of using the defined maximum hardware queue, which can lead to
incorrect values if the counts mismatch, use the exact supported MSI
count and its corresponding IRQ number.
Fixes: 90a30e268d ("dmaengine: ae4dma: Add AMD ae4dma controller driver")
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Link: https://lore.kernel.org/r/20250203162511.911946-3-Basavaraj.Natikar@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
committed by
Vinod Koul
parent
b87c29c007
commit
feba04e6fd
@@ -46,8 +46,8 @@ static int ae4_get_irqs(struct ae4_device *ae4)
|
||||
|
||||
} else {
|
||||
ae4_msix->msix_count = ret;
|
||||
for (i = 0; i < MAX_AE4_HW_QUEUES; i++)
|
||||
ae4->ae4_irq[i] = ae4_msix->msix_entry[i].vector;
|
||||
for (i = 0; i < ae4_msix->msix_count; i++)
|
||||
ae4->ae4_irq[i] = pci_irq_vector(pdev, i);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user