Re: [PATCH] mtd: maps: l440gx: Fix double put of the ISA bridge in init_l440gx()
From: Miquel Raynal
Date: Fri Sep 25 2026 - 10:29:20 EST
On Thu, 17 Sep 2026 10:22:44 +0000, Wentao Liang wrote:
> init_l440gx() takes a single reference on the PIIX4 ISA bridge with
> pci_get_device() and drops it again right after the lookups, before
> the flash window is set up. The pci_assign_resource() failure path
> then calls pci_dev_put() on the same device a second time, releasing a
> reference that is no longer owned and underflowing the reference count.
>
> Remove the extra pci_dev_put().
>
> [...]
Applied to mtd/next, thanks!
[1/1] mtd: maps: l440gx: Fix double put of the ISA bridge in init_l440gx()
commit: 521ad948e04934b2d70ae899bc016bbb38802e90
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