linux/sound/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
..
ac97 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ali5451 ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
asihpi ALSA: asihpi: Drop __force cast 2026-08-13 16:43:27 +02:00
au88x0 ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
aw2 ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
ca0106 ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
cs46xx treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
cs5535audio x86/olpc: select GPIOLIB_LEGACY 2026-07-24 20:12:48 +02:00
ctxfi treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
echoaudio ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
emu10k1 treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
ice1712 ALSA: ice1712: Fix the card leak at probe error with the auto-cleanup 2026-08-20 10:54:45 +02:00
korg1212 ALSA: korg1212: Use auto-cleanup for firmware loading 2026-07-31 12:44:36 +02:00
lola ALSA: lola: Use guard() for spin locks 2025-09-01 13:52:41 +02:00
lx6464es ALSA: lx6464es: fix period byte count for 16-bit streams 2026-07-26 08:53:06 +02:00
mixart ALSA: mixart: Use auto-cleanup for firmware loading 2026-07-31 12:44:36 +02:00
nm256 ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
oxygen ALSA: oxygen: add HT-Omega eClaro (7284:9783) support 2026-06-02 08:24:06 +02:00
pcxhr ALSA: pcxhr: initialize mutexes before requesting threaded IRQ 2026-08-19 14:59:41 +02:00
riptide Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
rme9652 Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
trident ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
vx222 ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
ymfpci ALSA: ymfpci: check snd_ctl_new1() return value 2026-05-28 09:36:09 +02:00
ad1889.c ALSA: ad1889: Use guard() for spin locks 2025-09-01 13:52:39 +02:00
ad1889.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ak4531_codec.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
als300.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
als4000.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
atiixp_modem.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
atiixp.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
azt3328.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
azt3328.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bt87x.c ALSA: bt87x: Use guard() for spin locks 2025-09-01 13:52:39 +02:00
cmipci.c ALSA: cmipci: check snd_ctl_new1() return value 2026-05-28 09:36:23 +02:00
cs4281.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
cs5530.c ALSA: cs5530: Use safer strscpy() instead of strcpy() 2025-07-11 09:53:19 +02:00
ens1370.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
ens1371.c ALSA: echoaudio: Add SPDX ids to some files 2026-02-18 08:57:38 +01:00
es1938.c ALSA: es1938: check snd_ctl_new1() return value 2026-05-28 09:34:41 +02:00
es1968.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
fm801.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
intel8x0.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
intel8x0m.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
Kconfig x86/olpc: select GPIOLIB_LEGACY 2026-07-24 20:12:48 +02:00
maestro3.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
Makefile ALSA: hda: Move codec drivers into sound/hda/codecs directory 2025-07-11 09:55:37 +02:00
rme32.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
rme96.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
sis7019.c ALSA: sis7019: Use pcim_iomap_region() for MMIO BAR 2026-07-20 08:42:58 +02:00
sis7019.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 274 2019-06-05 17:30:30 +02:00
sonicvibes.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00
via82xx_modem.c ALSA: via82xx: Remove unreachable branch in snd_via686_pcm_pointer() 2026-07-07 16:32:14 +02:00
via82xx.c ALSA: Consistently define pci_device_ids using named initializers 2026-05-04 13:22:14 +02:00