projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d64c491
)
scsi: pmcraid: Fix missing resource cleanup in error case
author
Chengguang Xu
<cgxu519@mykernel.net>
Sun, 29 May 2022 15:34:55 +0000
(23:34 +0800)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Wed, 8 Jun 2022 02:05:14 +0000
(22:05 -0400)
Fix missing resource cleanup (when '(--i) == 0') for error case in
pmcraid_register_interrupt_handler().
Link:
https://lore.kernel.org/r/20220529153456.4183738-6-cgxu519@mykernel.net
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pmcraid.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/pmcraid.c
b/drivers/scsi/pmcraid.c
index bfce60183a6e5173ac556334e3befbf6721892b3..836ddc476764ee155d0396f9c3a474f5d07e5368 100644
(file)
--- 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;