[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220529153456.4183738-6-cgxu519@mykernel.net>
Date: Sun, 29 May 2022 23:34:55 +0800
From: Chengguang Xu <cgxu519@...ernel.net>
To: netdev@...r.kernel.org, linux-staging@...ts.linux.dev,
linux-scsi@...r.kernel.org, linux-samsung-soc@...r.kernel.org,
linux-media@...r.kernel.org
Cc: Chengguang Xu <cgxu519@...ernel.net>
Subject: [PATCH 5/6] scsi: pmcraid: fix missing resource cleanup in error case
Fix missing resource cleanup(when '(--i) == 0') for error case in
pmcraid_register_interrupt_handler().
Signed-off-by: Chengguang Xu <cgxu519@...ernel.net>
---
drivers/scsi/pmcraid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c
index 3d5cd337a2a6..0007a8a993a1 100644
--- a/drivers/scsi/pmcraid.c
+++ b/drivers/scsi/pmcraid.c
@@ -4031,7 +4031,7 @@ pmcraid_register_interrupt_handler(struct pmcraid_instance *pinstance)
return 0;
out_unwind:
- while (--i > 0)
+ while (--i >= 0)
free_irq(pci_irq_vector(pdev, i), &pinstance->hrrq_vector[i]);
pci_free_irq_vectors(pdev);
return rc;
--
2.27.0
Powered by blists - more mailing lists