diff options
| author | Bjorn Helgaas <bhelgaas@google.com> | 2025-10-03 12:13:11 -0500 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2025-10-03 12:13:11 -0500 |
| commit | b365c0a76946b3f18e835c1ee85a280753f9a9b0 (patch) | |
| tree | a4eedf6e2ad7139312ef965f2571113816968b52 /drivers/pci/remove.c | |
| parent | 4c5cd8d64172de3730056366dc61392a3f2f003a (diff) | |
| parent | dc32e9346b26ba33e84ec3034a1e53a9733700f9 (diff) | |
Merge branch 'pci/pwrctrl'
- Fix a double cleanup of regulators if devm_add_action_or_reset() fails
(Geert Uytterhoeven)
* pci/pwrctrl:
PCI/pwrctrl: Fix device leak at device stop
PCI/pwrctrl: Fix device and OF node leak at bus scan
PCI/pwrctrl: Fix device leak at registration
PCI/pwrctrl: Fix double cleanup on devm_add_action_or_reset() failure
Diffstat (limited to 'drivers/pci/remove.c')
| -rw-r--r-- | drivers/pci/remove.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/remove.c b/drivers/pci/remove.c index 445afdfa6498..16f21edbc29d 100644 --- a/drivers/pci/remove.c +++ b/drivers/pci/remove.c @@ -31,6 +31,8 @@ static void pci_pwrctrl_unregister(struct device *dev) return; of_device_unregister(pdev); + put_device(&pdev->dev); + of_node_clear_flag(np, OF_POPULATED); } |