Re: [PATCH] scsi: pm8001: use rollback index when freeing MSI-X vectors
From: Martin K. Petersen (Oracle)
Date: Fri Aug 28 2026 - 21:38:25 EST
Runyu,
> 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.
Applied to 7.3/scsi-staging, thanks!
--
Martin K. Petersen