[PATCH] mtd: maps: pci: balance PCI enable on cleanup
Miquel Raynal
miquel.raynal at bootlin.com
Fri Sep 25 07:28:27 PDT 2026
On Mon, 14 Sep 2026 21:06:47 -0400, Myeonghun Pak wrote:
> mtd_pci_probe() leaves the PCI device enabled on later probe failure and
> mtd_pci_remove() does not disable it either. Use pcim_enable_device() to
> release the enable reference after the existing map and region cleanup.
>
> The imbalance is already present in the initial Git import.
>
> This issue was identified during our ongoing static-analysis research
> while reviewing kernel code.
>
> [...]
Applied to mtd/next, thanks!
[1/1] mtd: maps: pci: balance PCI enable on cleanup
commit: 3be16e5d4990bf96309ac5ba35cb369c6015bce7
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl
More information about the linux-mtd
mailing list