linux/drivers/pci
Kees Cook 3a2c4d55e3 treewide: refresh kmalloc_obj() conversions
This is another run of the Coccinelle script for converting kmalloc()
family of allocations to kmalloc_obj() via the existing rules in
scripts/coccinelle/api/kmalloc_objs.cocci

This catches both the set of kmalloc() uses added since the first
kmalloc_obj() conversions in v7.0 and adds a large group missed in the
first pass due to Coccinelle not interacting well with the cleanup.h
scoped_...() family of macros[1]. I worked around this with spatch's
"--macro-file" argument to a file with all the scoped_...() macros mapped
to Coccinelle's YACFE_ITERATOR[2] as that was the closest viable control
flow indicator I could find.

Build tested allmodconfig on x86, arm64, arm, loongarch, mips, powerpc,
riscv, and s390 with no new warnings.

Link: https://lore.kernel.org/lkml/202609021314.8A9C0B8@keescook/ [1]
Link: https://github.com/coccinelle/coccinelle/blob/master/standard.h [2]
Signed-off-by: Kees Cook <kees+treewide@kernel.org>
2026-09-04 21:37:00 -07:00
..
controller hyperv-next for v7.3-rc1 2026-08-26 16:47:40 -07:00
endpoint treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
hotplug pci-v7.3-changes 2026-08-23 12:44:10 -07:00
msi PCI/MSI: Enable memory decoding before restoring MSI-X messages 2026-08-12 17:27:13 -05:00
pcie Merge branch 'pci/controller/dwc' 2026-08-21 16:40:41 -05:00
pwrctrl power sequencing updates for v7.3-rc1 2026-08-26 08:45:09 -07:00
switch PCI: switchtec: Add Microchip PCI1008 device ID 2026-07-17 11:33:53 -05:00
access.c
ats.c PCI/ATS: Validate STU for VFs in pci_prepare_ats() 2026-07-09 10:11:03 +02:00
bus.c PCI/sysfs: Remove pci_{create,remove}_sysfs_dev_files() 2026-06-23 15:19:09 -05:00
devres.c PCI: Remove useless WARN_ON() from devres 2026-01-14 11:00:00 -06:00
doe.c PCI: Use %pe format specifier to print error pointers 2026-08-01 04:03:30 +00:00
ecam.c PCI: host-generic: Fix NULL pointer dereference on 32-bit CAM systems 2026-07-20 14:59:56 +02:00
host-bridge.c
ide.c PCI: Use FIELD_MODIFY() instead of open-coding it 2026-05-05 11:48:13 -05:00
iomap.c
iov.c PCI/IOV: Return unsigned int from pci_sriov_get_totalvfs() 2026-07-23 14:20:24 +02:00
irq.c
Kconfig PCI: Remove MPS/MRRS Kconfig settings (CONFIG_PCIE_BUS_*) 2026-04-27 09:47:37 -05:00
Makefile Merge branch 'pci/trace' 2026-02-06 17:09:26 -06:00
mmap.c
npem.c PCI/NPEM: Set LED_HW_PLUGGABLE for hotplug-capable ports 2026-04-06 12:34:28 -05:00
of_property.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
of.c PCI: Add support for PCIe WAKE# interrupt 2026-08-11 18:54:17 -05:00
p2pdma.c PCI/P2PDMA: Add Nvidia Vera Rubin to whitelist 2026-07-22 12:42:03 -05:00
pci-acpi.c PCI: Use %pe format specifier to print error pointers 2026-08-01 04:03:30 +00:00
pci-bridge-emul.c
pci-bridge-emul.h
pci-driver.c PCI: Fix UAF when probe runs concurrent to dyn ID removal 2026-07-28 11:20:29 -05:00
pci-label.c
pci-mid.c
pci-pf-stub.c
pci-stub.c
pci-sysfs.c pci-v7.3-changes 2026-08-23 12:44:10 -07:00
pci.c pci-v7.3-changes 2026-08-23 12:44:10 -07:00
pci.h Merge branch 'pci/controller/dwc' 2026-08-21 16:40:41 -05:00
probe.c PCI: Add support for PCIe WAKE# interrupt 2026-08-11 18:54:17 -05:00
proc.c PCI/proc: Use file_ns_capable() when checking config space read access 2026-08-04 17:22:20 -05:00
quirks.c Merge branch 'pci/virtualization' 2026-08-21 16:40:38 -05:00
rebar.c Merge branch 'pci/misc' 2026-06-23 17:32:24 -05:00
remove.c PCI: Add support for PCIe WAKE# interrupt 2026-08-11 18:54:17 -05:00
rom.c PCI: Check ROM header and data structure addr before accessing 2026-05-08 17:18:21 -05:00
search.c PCI: Make pci_match_one_device() match on ID instead of device 2026-07-28 11:18:51 -05:00
setup-bus.c PCI: Do not add hotplug reservation multiple times 2026-07-22 15:50:44 -05:00
setup-cardbus.c Merge branch 'pci/misc' 2026-06-23 17:32:24 -05:00
setup-res.c pci-v7.2-changes 2026-06-24 12:48:43 -07:00
slot.c PCI: Allow per function PCI slots to fix slot reset on s390 2026-08-12 17:12:48 -05:00
syscall.c
tph.c PCI: Use FIELD_MODIFY() instead of open-coding it 2026-05-05 11:48:13 -05:00
trace.c PCI: trace: Add PCI controller tracepoint feature 2026-04-07 20:12:16 +05:30
tsm.c
vc.c
vgaarb.c PCI/VGA: Convert to use acpi_dev_is_video_device() helper 2026-07-21 15:37:50 +02:00
vpd.c
xen-pcifront.c xen: branch for v7.0-rc3 2026-03-07 07:44:32 -08:00