linux/drivers/platform/x86/intel
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
..
atomisp2 Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
ifs Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
int1092 platform/x86: int1092: Fix info leak in parse_package() 2026-07-24 18:25:29 +03:00
int3472 platform: int3472: discrete: Support multiple HIDs per GPIO map entry 2026-07-30 23:39:31 +03:00
pmc treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
pmt platform/x86/intel/pmt: Unify header fetch and add ACPI source 2026-06-15 02:13:01 +03:00
speed_select_if platform-drivers-x86 for v7.3-1 2026-08-24 10:16:35 -07:00
telemetry platform/x86: intel_telemetry: Fix PSS event register mask 2026-01-26 16:42:43 +02:00
uncore-frequency platform/x86/intel-uncore-freq: Fix current_freq_khz after CPU hotplug 2026-06-10 14:51:55 +03:00
wmi platform/wmi: Extend wmidev_query_block() to reject undersized data 2026-04-13 14:11:25 +03:00
bxtwc_tmu.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
bytcrc_pwrsrc.c
chtdc_ti_pwrbtn.c
chtwc_int33fe.c platform/x86: intel: chtwc_int33fe: don't dereference swnode args 2025-11-21 15:31:43 +01:00
crystal_cove_charger.c
ehl_pse_io.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
hid.c platform/x86: intel-hid: Protect ACPI notify handler against recursion 2026-06-10 14:46:30 +03:00
int0002_vgpio.c platform/x86: int0002: Remove IRQF_ONESHOT from request_irq() 2026-02-01 17:37:13 +01:00
ishtp_eclite.c platform/x86: ishtp_eclite: Fix ACPI device reference leak in probe error path 2026-07-09 16:44:10 +03:00
Kconfig platform/x86/intel: Introduce Intel Elkhart Lake PSE I/O 2025-11-19 14:08:51 +01:00
Makefile platform/x86/intel: Introduce Intel Elkhart Lake PSE I/O 2025-11-19 14:08:51 +01:00
mrfld_pwrbtn.c
oaktrail.c
plr_tpmi.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
punit_ipc.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
rst.c platform/x86: intel/rst: Check ACPI_COMPANION() against NULL 2026-05-20 13:05:12 +03:00
sdsi.c platform/x86/intel/vsec: Switch exported helpers from pci_dev to device 2026-03-17 18:51:15 +02:00
smartconnect.c platform/x86: intel/smartconnect: Check ACPI_HANDLE() against NULL 2026-05-20 13:05:14 +03:00
tpmi_power_domains.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
tpmi_power_domains.h platform/x86/intel: power-domains: Add interface to get Linux die ID 2025-05-15 14:47:25 +03:00
turbo_max_3.c x86/msr: Add explicit includes of <asm/msr.h> 2025-05-02 10:23:47 +02:00
vbtn.c platform/x86: intel-vbtn: Check ACPI_HANDLE() against NULL 2026-05-19 16:47:50 +03:00
vsec_tpmi.c platform/x86/intel/tpmi: convert mutex in mem_write() to guard 2026-06-09 14:54:34 +03:00
vsec.c platform/x86/intel/vsec: free ACPI discovery data on early errors 2026-07-10 20:29:34 +03:00