Unverified Commit 631b2af2 authored by Zhe Qiao's avatar Zhe Qiao Committed by Krzysztof Wilczyński
Browse files

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: 789befdf ("arm64: PCI: Migrate ACPI related functions to pci-acpi.c")
Signed-off-by: default avatarZhe Qiao <qiaozhe@iscas.ac.cn>
[kwilczynski: commit log]
Signed-off-by: default avatarKrzysztof Wilczyński <kwilczynski@kernel.org>
Acked-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20250430060603.381504-1-qiaozhe@iscas.ac.cn
parent 0af2f6be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment