linux/drivers/input/mouse
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
..
alps.c
alps.h
amimouse.c
appletouch.c
atarimouse.c
bcm5974.c
byd.c Input: byd - synchronize timer deletion before freeing private data 2026-07-22 11:53:56 -07:00
byd.h
cyapa_gen3.c
cyapa_gen5.c
cyapa_gen6.c
cyapa.c Input: Use named initializers for arrays of i2c_device_data 2026-05-30 22:10:47 -07:00
cyapa.h
cypress_ps2.c
cypress_ps2.h
elan_i2c_core.c Input: elan_i2c - sort include statements 2026-08-12 17:44:06 -07:00
elan_i2c_i2c.c Input: elan_i2c - optimize update speed for IC Type 0x19. 2026-08-12 17:37:45 -07:00
elan_i2c_smbus.c Input: elan_i2c - optimize update speed for IC Type 0x19. 2026-08-12 17:37:45 -07:00
elan_i2c.h Input: elan_i2c - optimize update speed for IC Type 0x19. 2026-08-12 17:37:45 -07:00
elantech.c
elantech.h
focaltech.c Merge branch 'next' into for-linus 2026-08-14 21:26:07 -07:00
focaltech.h
gpio_mouse.c
Kconfig
lifebook.c
lifebook.h
logips2pp.c
logips2pp.h
Makefile
maplemouse.c Input: maplemouse - set driver data before registering input device 2026-07-02 22:48:57 -07:00
psmouse-base.c Input: psmouse - use guard() for resource management 2026-08-03 17:06:27 -07:00
psmouse-smbus.c treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
psmouse.h
rpcmouse.c
sentelic.c
sentelic.h
sermouse.c
synaptics_i2c.c Input: synaptics_i2c - return 0 explicitly on success 2026-08-04 21:27:53 -07:00
synaptics_usb.c
synaptics.c Input: synaptics - enable InterTouch on Dell Inspiron 3521 2026-06-26 11:04:26 -07:00
synaptics.h
touchkit_ps2.c
touchkit_ps2.h
trackpoint.c
trackpoint.h
vmmouse.c
vmmouse.h
vsxxxaa.c