android_kernel_motorola_sm6375/drivers/pci
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sungho Kim ce179e2434 PCI/P2PDMA: Fix incorrect pointer usage in devm_kfree() call
[ Upstream commit 6238784e502b6a9fbeb3a6b77284b29baa4135cc ]

The error handling path in pci_p2pdma_add_resource() contains a bug in its
`pgmap_free` label.

Memory is allocated for the `p2p_pgmap` struct, and the pointer is stored
in `p2p_pgmap`. However, the error path calls devm_kfree() with `pgmap`,
which is a pointer to a member field within the `p2p_pgmap` struct, not the
base pointer of the allocation.

Correct the bug by passing the correct base pointer, `p2p_pgmap`, to
devm_kfree().

Signed-off-by: Sungho Kim <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Logan Gunthorpe <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Sasha Levin <[email protected]>
2025-12-03 12:45:10 +01:00
..
controller PCI: keystone: Use devm_request_irq() to free "ks-pcie-error-irq" on exit 2025-10-29 13:59:54 +01:00
endpoint PCI: endpoint: Fix configfs group removal on driver teardown 2025-08-28 16:21:31 +02:00
hotplug PCI: pnv_php: Work around switches with broken presence detection 2025-08-28 16:21:29 +02:00
pcie PCI/portdrv: Only disable pciehp interrupts early when needed 2025-04-10 14:29:40 +02:00
switch
access.c
ats.c
bus.c
ecam.c
host-bridge.c
iov.c PCI/IOV: Add PCI rescan-remove locking when enabling/disabling SR-IOV 2025-10-29 13:59:54 +01:00
irq.c
Kconfig
Makefile
mmap.c
msi.c
of.c
p2pdma.c PCI/P2PDMA: Fix incorrect pointer usage in devm_kfree() call 2025-12-03 12:45:10 +01:00
pci-acpi.c PCI/ACPI: Fix runtime PM ref imbalance on Hot-Plug Capable ports 2025-08-28 16:21:33 +02:00
pci-bridge-emul.c
pci-bridge-emul.h
pci-driver.c PCI/AER: Fix missing uevent on recovery when a reset is requested 2025-10-29 13:59:54 +01:00
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/ACPI: Fix runtime PM ref imbalance on Hot-Plug Capable ports 2025-08-28 16:21:33 +02:00
pci.h PCI: Add 'reset_subordinate' to reset hierarchy below bridge 2024-12-14 19:44:54 +01:00
probe.c PCI/ACPI: Fix runtime PM ref imbalance on Hot-Plug Capable ports 2025-08-28 16:21:33 +02:00
proc.c
quirks.c PCI: Disable MSI on RDC PCI to PCIe bridges 2025-12-03 12:45:08 +01:00
remove.c
rom.c
search.c
setup-bus.c PCI: Fix old_size lower bound in calculate_iosize() too 2025-06-04 14:32:33 +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