mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2025-03-14 09:29:24 +01:00
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:
parent
a8e01be6b2
commit
2a32fa455b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user