[PATCH] mtd: maps: l440gx: Fix double put of the PM device in init_l440gx()

Miquel Raynal miquel.raynal at bootlin.com
Fri Sep 25 07:28:48 PDT 2026


On Thu, 17 Sep 2026 10:24:07 +0000, Wentao Liang wrote:
> The PIIX4 PM device reference taken with pci_get_device() is dropped
> again before the iobase resource is allocated.  If pci_assign_resource()
> fails, the error path calls pci_dev_put() on pm_dev 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 PM device in init_l440gx()
      commit: e6ca524ee5b2705be30ea19ce2e55122d9f9ed8f

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