nv-msi: Fix free_irq index on nv_request_msix_irq

In the nv_request_msix_irq, if the request_threaded_irq
failed. The free_irq will be called to free the allocated
irqs. The allocated irqs index should be j instead of i.

Signed-off-by: Guixiong Wei <weiguixiong@bytedance.com>
This commit is contained in:
Guixiong Wei 2023-09-17 16:59:34 +08:00
parent a8e01be6b2
commit 2a32fa455b

View File

@ -156,7 +156,7 @@ NvS32 NV_API_CALL nv_request_msix_irq(nv_linux_state_t *nvl)
{
for( j = 0; j < i; j++)
{
free_irq(nvl->msix_entries[i].vector, (void *)nvl);
free_irq(nvl->msix_entries[j].vector, (void *)nvl);
}
break;
}