linux/drivers/scsi/pm8001
Runyu Xiao 3f92a64545 scsi: pm8001: Use rollback index when freeing MSI-X vectors
pm8001_request_msix() unwinds previously registered handlers with
free_irq() when request_irq() fails. The rollback loop uses the failing
index i for every iteration instead of the already registered vector
index j.

That passes the wrong IRQ/dev_id pair to free_irq() and leaves the
earlier handlers installed. Use j for both pci_irq_vector() and the
matching irq_vector entry in the rollback loop.

Fixes: a76037ff34 ("scsi: pm8001: switch to pci_irq_alloc_vectors")
Cc: stable@vger.kernel.org
Assisted-by: Codex:GPT-5
Signed-off-by: Runyu Xiao <runyu.xiao@seu.edu.cn>
Acked-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Link: https://patch.msgid.link/20260824113618.2239100-1-runyu.xiao@seu.edu.cn
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
2026-08-28 21:36:18 -04:00
..
Makefile scsi: pm80xx: Add tracepoints 2021-11-18 22:26:58 -05:00
pm80xx_hwi.c scsi: pm8001: Reject non-fatal dump when controller is crashed 2026-05-14 22:10:23 -04:00
pm80xx_hwi.h scsi: pm80xx: Avoid -Wflex-array-member-not-at-end warnings 2025-09-09 22:40:32 -04:00
pm80xx_tracepoints.c scsi: pm80xx: Add tracepoints 2021-11-18 22:26:58 -05:00
pm80xx_tracepoints.h scsi: pm80xx: Add pm80xx_mpi_build_cmd() tracepoint 2021-11-18 22:26:58 -05:00
pm8001_chips.h
pm8001_ctl.c scsi: pm8001: Fix error code in non_fatal_log_show() 2026-06-01 21:52:12 -04:00
pm8001_ctl.h scsi: pm8001: Clean up white space 2021-04-12 23:21:26 -04:00
pm8001_defs.h scsi: pm80xx: Increase reserved tags from 8 to 128 2024-12-04 14:46:58 -05:00
pm8001_hwi.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pm8001_hwi.h scsi: pm80xx: Avoid -Wflex-array-member-not-at-end warnings 2025-09-09 22:40:32 -04:00
pm8001_init.c scsi: pm8001: Use rollback index when freeing MSI-X vectors 2026-08-28 21:36:18 -04:00
pm8001_sas.c scsi: pm8001: Fix use-after-free in pm8001_queue_command() 2026-02-17 21:35:43 -05:00
pm8001_sas.h scsi: pm80xx: Fix race condition caused by static variables 2025-08-25 22:20:07 -04:00