linux/drivers/media/platform
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
..
allegro-dvt treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
amd treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
amlogic media: amlogic-c3: Implement per-block validation 2026-07-30 20:51:13 +03:00
amphion media: amphion: Remove obsolete frame_count check in venc_start_session 2026-07-17 12:36:48 +02:00
arm [GIT PULL for v7.3] media updates 2026-08-19 10:09:22 -07:00
aspeed media: aspeed: fix missing of_reserved_mem_device_release() on probe failure 2026-05-05 16:57:02 +02:00
atmel media: atmel-isi: use devm_kmemdup_array() 2025-04-25 15:14:33 +02:00
broadcom media: bcm2835-unicam: Fix pipeline wrong validation for unpacked formats 2026-07-20 17:19:35 +03:00
cadence media: cadence: csi2rx: Support runtime PM 2026-05-20 15:28:38 +03:00
chips-media [GIT PULL for v7.3] media updates 2026-08-19 10:09:22 -07:00
dreamchip media: rppx1: lin: Add support for gamma sensor linearization 2026-07-30 20:51:35 +03:00
imagination Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
intel Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
marvell media: marvell-cam: fix missing pci_disable_device() on remove 2026-05-05 16:57:03 +02:00
mediatek [GIT PULL for v7.3] media updates 2026-08-19 10:09:22 -07:00
microchip [GIT PULL for v7.3] media updates 2026-08-19 10:09:22 -07:00
nuvoton media: nuvoton: npcm-video: fix memory leaks in probe and remove 2026-05-05 16:57:02 +02:00
nvidia [GIT PULL for v7.2] media updates 2026-06-18 17:21:54 -07:00
nxp media: nxp: imx8-isi: Add additional 32-bit RGB format support 2026-07-31 09:13:10 +02:00
qcom [GIT PULL for v7.3] media updates 2026-08-19 10:09:22 -07:00
raspberrypi Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
renesas treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
rockchip media: rkvdec: use DIV_ROUND_UP() for CTB counts 2026-07-17 12:36:48 +02:00
samsung bitmap updates for v7.3 2026-08-20 11:41:46 -07:00
st [GIT PULL for v7.3] media updates 2026-08-19 10:09:22 -07:00
sunxi Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
synopsys [GIT PULL for v7.2] media updates 2026-06-18 17:21:54 -07:00
ti media: ti: vpe: quiesce overflow recovery before freeing streams 2026-07-28 15:17:54 +02:00
verisilicon media: platform: hantro_drv: Add missing media_entity_cleanup() 2026-07-17 12:36:48 +02:00
via Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
xilinx media: Wrap file->private_data access with a helper function 2025-08-13 08:33:23 +02:00
Kconfig media: rppx1: Add framework to support Dreamchip RPPX1 ISP 2026-07-30 20:51:35 +03:00
m2m-deinterlace.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Makefile media: rppx1: Add framework to support Dreamchip RPPX1 ISP 2026-07-30 20:51:35 +03:00
video-mux.c