linux/drivers/net/ethernet
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
..
3com ethernet: 3c509: Improve style of pnp_device_id array terminator 2026-06-13 14:59:06 -07:00
8390 net: Use named initializer for zorro_device_id arrays 2026-05-28 18:07:11 -07:00
actions
adaptec net: Consistently define pci_device_ids using named initializers 2026-05-12 18:16:34 -07:00
adi net: ethernet: adi: Add a driver for the ADIN1140 MACPHY 2026-07-21 10:53:24 +02:00
aeroflex
agere et131x: propagate EEPROM readiness errors 2026-08-10 17:40:51 -07:00
airoha net: airoha: enable RX_DONE interrupt for RX queue 31 2026-09-03 11:40:51 +02:00
alacritech
alibaba treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
allwinner net: ethernet: sun4i-emac: Fix IRQ error handling 2026-08-27 10:00:14 +02:00
altera
amazon net: ethernet: remove conditional return with no effect 2026-07-30 13:04:03 +02:00
amd treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
apm net: replace linux/gpio.h inclusions 2026-06-30 16:45:02 -07:00
apple
aquantia Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-08-06 11:53:47 -07:00
arc
asix
atheros Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-05-21 15:09:02 -07:00
broadcom bnxt_en: Write doorbell when linearizing skb fails 2026-08-27 11:27:31 +02:00
brocade bna: fix use-after-free on DMA mapping failure 2026-07-21 11:18:32 -07:00
cadence treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
calxeda Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
cavium net/liquidio: drop cached VF pci_dev LUT 2026-07-07 11:03:35 +02:00
chelsio net: add READ_ONCE()/WRITE_ONCE() annotations for dev->num_tc 2026-08-17 10:27:48 -07:00
cirrus Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-05-14 10:08:06 -07:00
cisco treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
cortina net: ethernet: cortina: Carry over frag counter 2026-05-12 15:20:16 +02:00
davicom
dec net: tulip: remove xircom_cb driver 2026-08-05 18:33:46 -07:00
dlink net: Consistently define pci_device_ids using named initializers 2026-05-12 18:16:34 -07:00
emulex net: eth: benet: Use strscpy() to copy strings into arrays 2026-06-09 18:06:41 -07:00
engleder
ezchip Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
faraday Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
freescale treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
fungible net/funeth: switch to higher-level allocator API 2026-07-30 19:40:43 -07:00
google gve: add a few helper functions to set device properties 2026-08-17 18:40:08 -07:00
hisilicon net: hibmcge: fix page_pool DMA direction mismatch 2026-08-22 13:49:13 -07:00
huawei Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-08-18 10:42:41 -07:00
i825xx
ibm Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-08-18 10:42:41 -07:00
intel treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
litex
marvell treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
mediatek net: ethernet: mtk_wed: increase WED v2 WDMA RESV_BUFF to 0x80 2026-08-24 11:10:54 -07:00
mellanox treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
meta treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
micrel net: Consistently define pci_device_ids using named initializers 2026-05-12 18:16:34 -07:00
microchip net: sparx5: fix sleep in atomic context in MAC table access 2026-08-22 13:21:26 -07:00
microsoft treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
moxa
mscc net: mscc: ocelot: validate netdev belongs to switch in .netdev_to_port() 2026-06-09 17:54:34 -07:00
mucse net: rnpgbe: fix mailbox endianness and remove pointer casts 2026-07-07 10:45:42 +02:00
myricom
natsemi net: Consistently define pci_device_ids using named initializers 2026-05-12 18:16:34 -07:00
netronome nfp: Check resource mutex allocation 2026-07-21 13:06:40 +02:00
ni
nvidia forcedeth: stop the tx_timeout register dump past the requested window 2026-08-20 12:24:44 -07:00
nxp
oki-semi net: replace linux/gpio.h inclusions 2026-06-30 16:45:02 -07:00
pasemi
pensando Including fixes from Bluetooth, IPSec and Netfilter. 2026-08-27 13:53:43 -07:00
qlogic qede: Fix NULL pointer dereference in TPA fragment processing 2026-08-22 13:23:02 -07:00
qualcomm net: qualcomm: rmnet: restore skb->dev on deaggregated frames 2026-08-24 11:42:16 -07:00
rdc
realtek Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-08-18 10:42:41 -07:00
renesas net: ethernet: renesas: rswitch: fix device_node refcount leak in rswitch_get_port_node() 2026-08-24 11:58:22 -07:00
rocker rocker: Fix memory leak in ofdpa_port_fdb() 2026-06-22 16:05:15 -07:00
samsung Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2026-07-30 12:53:19 -07:00
seeq
sfc net: add READ_ONCE()/WRITE_ONCE() annotations for dev->num_tc 2026-08-17 10:27:48 -07:00
sgi net: sgi: ioc3-eth: fix split TX DMA mapping lengths 2026-06-30 17:13:06 -07:00
silan
sis net: ethernet: sis900: correct CONFIG_VLAN_8021Q macro name in comment 2026-06-12 16:13:43 -07:00
smsc net: Consistently define pci_device_ids using named initializers 2026-05-12 18:16:34 -07:00
socionext
spacemit
stmicro net: stmmac: reconfigure RX packet parser table in stmmac_hw_setup() after reset 2026-09-03 11:45:30 +02:00
sun net: niu: fix potential buffer overflow/truncation in irq names 2026-08-07 16:41:01 -07:00
sunplus net: ethernet: sunplus: spl2sw: fix phy_node refcount leak in remove 2026-06-24 19:34:56 -07:00
synopsys
tehuti
ti net: add READ_ONCE()/WRITE_ONCE() annotations for dev->num_tc 2026-08-17 10:27:48 -07:00
toshiba
tundra
vertexcom
via
wangxun net: wangxun: use BIT_ULL() to prevent shift overflow on 32-bit archs 2026-08-27 12:15:08 +02:00
wiznet w5100: remove unused gpio link detection 2026-05-06 19:18:45 -07:00
xilinx net: xilinx: axienet: Treat xlnx,rxmem as a required property 2026-08-10 16:33:47 -07:00
xircom
xscale Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
zte dinghai: add hardware register access and PCI capability scanning 2026-08-05 18:19:49 -07:00
ec_bhf.c
ethoc.c
fealnx.c net: Consistently define pci_device_ids using named initializers 2026-05-12 18:16:34 -07:00
jme.c
jme.h
Kconfig dinghai: add ZTE network driver support 2026-08-05 18:19:48 -07:00
korina.c
lantiq_etop.c
lantiq_xrx200.c
Makefile dinghai: add ZTE network driver support 2026-08-05 18:19:48 -07:00
oa_tc6.c net: ethernet: oa_tc6: Fix for the wrong data type 2026-08-31 16:03:21 -07:00