linux/drivers/fpga
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
..
tests
altera-cvp.c fpga: altera-cvp: Avoid out-of-bounds read in trailing byte write 2026-08-04 17:35:41 +08:00
altera-fpga2sdram.c
altera-freeze-bridge.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
altera-hps2fpga.c
altera-pr-ip-core-plat.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
altera-pr-ip-core.c
altera-ps-spi.c
dfl-afu-dma-region.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
dfl-afu-error.c
dfl-afu-main.c fpga: dfl-afu: validate DMA mapping length in afu_dma_map_region() 2026-06-01 12:29:13 +08:00
dfl-afu-region.c
dfl-afu.h
dfl-fme-br.c
dfl-fme-error.c
dfl-fme-main.c
dfl-fme-mgr.c
dfl-fme-perf.c Char/Misc/IIO/etc driver update for 7.3-rc1 2026-08-25 09:38:50 -07:00
dfl-fme-pr.c
dfl-fme-pr.h
dfl-fme-region.c
dfl-fme.h
dfl-n3000-nios.c
dfl-pci.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dfl.c fpga: dfl: add bounds check in dfh_get_param_size() 2026-06-01 12:28:33 +08:00
dfl.h fpga: dfl: fix typo in header file 2026-01-22 17:08:06 +08:00
efinix-spi.c fpga-mgr: Add Efinix SPI programming driver 2026-05-04 19:30:18 +08:00
fpga-bridge.c fpga: bridge: Use sysfs_emit() instead of sprintf() 2026-03-02 17:47:44 +08:00
fpga-mgr.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
fpga-region.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ice40-spi.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
intel-m10-bmc-sec-update.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
Kconfig fpga-mgr: Add Efinix SPI programming driver 2026-05-04 19:30:18 +08:00
lattice-sysconfig-spi.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
lattice-sysconfig.c
lattice-sysconfig.h
machxo2-spi.c
Makefile fpga-mgr: Add Efinix SPI programming driver 2026-05-04 19:30:18 +08:00
microchip-spi.c fpga: microchip-spi: fix zero header_size OOB read in mpf_ops_parse_header() 2026-06-01 12:29:40 +08:00
of-fpga-region.c fpga: region: fix use-after-free in child_regions_with_firmware() 2026-05-04 19:27:05 +08:00
socfpga-a10.c
socfpga.c
stratix10-soc.c fpga: stratix10-soc: Fix SVC mailbox handling during reconfiguration 2026-07-07 11:16:59 +08:00
ts73xx-fpga.c fpga: ts73xx-fpga: add OF match table for device tree probing 2026-05-04 19:28:18 +08:00
versal-fpga.c
xilinx-core.c
xilinx-core.h
xilinx-pr-decoupler.c fpga: xilinx-pr-decoupler: Use devm_clk_get_prepared() 2026-07-07 11:13:23 +08:00
xilinx-selectmap.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
xilinx-spi.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
zynq-fpga.c fpga: zynq-fpga: Remove redundant dev_err() 2026-07-23 12:45:58 +08:00
zynqmp-fpga.c