Commit 3d159ffc authored by Zhe Qiao's avatar Zhe Qiao Committed by Greg Kroah-Hartman
Browse files

PCI/ACPI: Fix allocated memory release on error in pci_acpi_scan_root()



[ Upstream commit 631b2af2 ]

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


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent bc6ddff7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment