Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
  • Loading branch information
guixiongwei committed Sep 17, 2023
commit 2a32fa455bb263bde9dc96e76870a60976087484
2 changes: 1 addition & 1 deletion kernel-open/nvidia/nv-msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down