linux-yocto/drivers/pci
Zhe Qiao 7dccd5eb53 Revert "PCI/ACPI: Fix allocated memory release on error in pci_acpi_scan_root()"
commit 2b8be57fa0 upstream.

This reverts commit 631b2af2f3 ("PCI/ACPI: Fix allocated memory release
on error in pci_acpi_scan_root()").

The reverted patch causes the 'ri->cfg' and 'root_ops' resources to be
released multiple times.

When acpi_pci_root_create() fails, these resources have already been
released internally by the __acpi_pci_root_release_info() function.

Releasing them again in pci_acpi_scan_root() leads to incorrect behavior
and potential memory issues.

We plan to resolve the issue using a more appropriate fix.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/all/aEmdnuw715btq7Q5@stanley.mountain/
Signed-off-by: Zhe Qiao <qiaozhe@iscas.ac.cn>
Acked-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/20250619072608.2075475-1-qiaozhe@iscas.ac.cn
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-17 18:37:13 +02:00
..
controller PCI: apple: Set only available ports up 2025-07-06 11:01:37 +02:00
endpoint PCI: endpoint: Retain fixed-size BAR size as well as aligned size 2025-06-19 15:32:11 +02:00
hotplug s390/pci: Prevent self deletion in disable_slot() 2025-06-27 11:11:14 +01:00
msi PCI/MSI: Add an option to write MSIX ENTRY_DATA before any reads 2025-05-02 07:58:56 +02:00
pcie PCI/DPC: Log Error Source ID only when valid 2025-06-19 15:32:10 +02:00
pwrctl
switch
access.c
ats.c iommufd: Extend IOMMU_GET_HW_INFO to report PASID capability 2025-05-29 11:02:04 +02:00
bus.c
devres.c PCI: Fix wrong length of devres array 2025-04-20 10:15:58 +02:00
doe.c
ecam.c
host-bridge.c
iomap.c PCI: Check BAR index for validity 2025-04-20 10:15:26 +02:00
iov.c
irq.c
Kconfig x86/kaslr: Reduce KASLR entropy on most x86 systems 2025-05-29 11:02:40 +02:00
Makefile
mmap.c
npem.c
of_property.c
of.c
p2pdma.c
pci-acpi.c Revert "PCI/ACPI: Fix allocated memory release on error in pci_acpi_scan_root()" 2025-07-17 18:37:13 +02:00
pci-bridge-emul.c
pci-bridge-emul.h
pci-driver.c
pci-label.c
pci-mid.c
pci-pf-stub.c
pci-stub.c
pci-sysfs.c PCI: Fix BAR resizing when VF BARs are assigned 2025-04-10 14:39:16 +02:00
pci.c PCI: Fix lock symmetry in pci_slot_unlock() 2025-06-27 11:11:25 +01:00
pci.h PCI: Check BAR index for validity 2025-04-20 10:15:26 +02:00
probe.c PCI: Fix reference leak in pci_register_host_bridge() 2025-04-20 10:15:58 +02:00
proc.c
quirks.c PCI: Add ACS quirk for Loongson PCIe 2025-06-27 11:11:25 +01:00
remove.c
rom.c
search.c
setup-bus.c PCI: Fix old_size lower bound in calculate_iosize() too 2025-05-29 11:02:46 +02:00
setup-res.c
slot.c
syscall.c
vc.c
vgaarb.c
vpd.c
xen-pcifront.c