diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-17 10:24:07 +0000 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2026-09-25 15:40:49 +0200 |
| commit | e6ca524ee5b2705be30ea19ce2e55122d9f9ed8f (patch) | |
| tree | 7cf2336027d76948e0aecfbf8f2cbb7347a7ce1b /scripts/Makefile.thinlto | |
| parent | 521ad948e04934b2d70ae899bc016bbb38802e90 (diff) | |
| download | linux-e6ca524ee5b2705be30ea19ce2e55122d9f9ed8f.tar.gz linux-e6ca524ee5b2705be30ea19ce2e55122d9f9ed8f.zip | |
mtd: maps: l440gx: Fix double put of the PM device in init_l440gx()
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().
Fixes: dd8e9ed6ed54 ("[MTD] Switch to pci_get_device and do ref counting")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
