android_kernel_motorola_sm6375/drivers/pci
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Zijun Hu a0a943700f PCI: endpoint: Destroy the EPC device in devm_pci_epc_destroy()
[ Upstream commit d4929755e4d02bd3de3ae5569dab69cb9502c54f ]

The devm_pci_epc_destroy() comment says destroys the EPC device, but it
does not actually do that since devres_destroy() does not call
devm_pci_epc_release(), and it also can not fully undo what the API
devm_pci_epc_create() does, so it is faulty.

Fortunately, the faulty API has not been used by current kernel tree.  Use
devres_release() instead of devres_destroy() so the EPC device will be
released.

Link: https://lore.kernel.org/r/20241210-pci-epc-core_fix-v3-1-4d86dd573e4b@quicinc.com
Fixes: 5e8cb40338 ("PCI: endpoint: Add EP core layer to enable EP controller and EP functions")
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-03-13 12:42:58 +01:00
..
controller PCI: rockchip-ep: Fix address translation unit programming 2024-12-14 19:44:56 +01:00
endpoint PCI: endpoint: Destroy the EPC device in devm_pci_epc_destroy() 2025-03-13 12:42:58 +01:00
hotplug PCI: cpqphp: Fix PCIBIOS_* return value confusion 2024-12-14 19:44:31 +01:00
pcie PCI/AER: Disable AER service on suspend 2025-01-09 13:23:26 +01:00
switch
access.c
ats.c
bus.c
ecam.c
host-bridge.c
iov.c
irq.c
Kconfig
Makefile
mmap.c
msi.c
of.c
p2pdma.c
pci-acpi.c
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: Add 'reset_subordinate' to reset hierarchy below bridge 2024-12-14 19:44:54 +01:00
pci.c PCI: Add 'reset_subordinate' to reset hierarchy below bridge 2024-12-14 19:44:54 +01:00
pci.h PCI: Add 'reset_subordinate' to reset hierarchy below bridge 2024-12-14 19:44:54 +01:00
probe.c
proc.c
quirks.c PCI: Add ACS quirk for Broadcom BCM5760X NIC 2025-01-09 13:23:27 +01:00
remove.c
rom.c
search.c
setup-bus.c PCI: Fix resource double counting on remove & rescan 2024-08-19 05:33:32 +02:00
setup-irq.c
setup-res.c
slot.c PCI: Fix use-after-free of slot->bus on hot remove 2024-12-14 19:44:36 +01:00
syscall.c
vc.c
vpd.c
xen-pcifront.c