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 PCI/pwrctl: Abandon QCom WCN probe on pre-pwrseq device-trees 2024-10-23 13:34:41 -05:00
switch PCI: switchtec: Add Microchip PCI100X device IDs 2025-02-21 14:01:24 +01:00
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 PCI/NPEM: Add Native PCIe Enclosure Management support 2024-09-04 17:25:12 -05:00
mmap.c
npem.c PCI/NPEM: Add _DSM PCIe SSD status LED management 2024-09-06 11:37:24 -05:00
of_property.c PCI: of_property: Assign PCI instead of CPU bus address to dynamic PCI nodes 2024-12-09 10:41:09 +01:00
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: Rename CRS Completion Status to RRS 2024-09-10 19:52:30 -05:00
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 pci-v6.12-changes 2024-09-23 12:47:06 -07:00
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 PCI: Fix use-after-free of slot->bus on hot remove 2024-12-05 14:02:45 +01:00
syscall.c
vc.c
vgaarb.c
vpd.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
xen-pcifront.c