Commit e24bbbe
PCI/pwrctrl: Fix device and OF node leak at bus scan
Make sure to drop the references to the pwrctrl OF node and device taken by
of_pci_find_child_device() and of_find_device_by_node() respectively when
scanning the bus.
Fixes: 957f40d ("PCI/pwrctrl: Move creation of pwrctrl devices to pci_scan_device()")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Cc: stable@vger.kernel.org # v6.15
Link: https://patch.msgid.link/20250721153609.8611-3-johan+linaro@kernel.org1 parent 39f9be6 commit e24bbbe
1 file changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2516 | 2516 | | |
2517 | 2517 | | |
2518 | 2518 | | |
2519 | | - | |
| 2519 | + | |
2520 | 2520 | | |
2521 | 2521 | | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
2522 | 2528 | | |
2523 | 2529 | | |
2524 | 2530 | | |
2525 | 2531 | | |
2526 | 2532 | | |
2527 | 2533 | | |
2528 | 2534 | | |
2529 | | - | |
| 2535 | + | |
2530 | 2536 | | |
2531 | 2537 | | |
2532 | 2538 | | |
2533 | 2539 | | |
2534 | 2540 | | |
2535 | 2541 | | |
2536 | | - | |
| 2542 | + | |
2537 | 2543 | | |
2538 | 2544 | | |
| 2545 | + | |
| 2546 | + | |
2539 | 2547 | | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
2540 | 2553 | | |
2541 | 2554 | | |
2542 | 2555 | | |
| |||
0 commit comments