diff options
| author | Zhe Qiao <[email protected]> | 2025-04-30 06:06:03 +0000 |
|---|---|---|
| committer | Krzysztof Wilczyński <[email protected]> | 2025-05-22 11:00:03 +0000 |
| commit | 631b2af2f35737750af284be22e63da56bf20139 (patch) | |
| tree | cc5b7bdc59559230fe4ab731aa834ef4bfa5349a /drivers/pci/controller/dwc/pcie-qcom-common.c | |
| parent | Linux 6.15-rc1 (diff) | |
| download | kernel-631b2af2f35737750af284be22e63da56bf20139.tar.gz kernel-631b2af2f35737750af284be22e63da56bf20139.zip | |
PCI/ACPI: Fix allocated memory release on error in pci_acpi_scan_root()
In the pci_acpi_scan_root() function, when creating a PCI bus fails,
we need to free up the previously allocated memory, which can avoid
invalid memory usage and save resources.
Fixes: 789befdfa389 ("arm64: PCI: Migrate ACPI related functions to pci-acpi.c")
Signed-off-by: Zhe Qiao <[email protected]>
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Acked-by: Rafael J. Wysocki <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-common.c')
0 files changed, 0 insertions, 0 deletions
