From 2a32fa455bb263bde9dc96e76870a60976087484 Mon Sep 17 00:00:00 2001 From: Guixiong Wei Date: Sun, 17 Sep 2023 16:59:34 +0800 Subject: [PATCH] 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 --- kernel-open/nvidia/nv-msi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel-open/nvidia/nv-msi.c b/kernel-open/nvidia/nv-msi.c index a5a6a485b..959bc3426 100644 --- a/kernel-open/nvidia/nv-msi.c +++ b/kernel-open/nvidia/nv-msi.c @@ -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; }