linux/drivers/usb
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>
History 2026-09-04 21:37:00 -07:00
..
atm Including fixes from Bluetooth, IPSec and Netfilter. 2026-08-27 13:53:43 -07:00
c67x00 USB: c67x00: fix use-after-free in c67x00_add_iso_urb() 2026-08-14 10:49:00 +09:00
cdns3 Merge 7.2-rc7 into usb-next 2026-08-14 10:17:11 +09:00
chipidea USB / Thunderbolt changes for 7.3-rc1 2026-08-25 10:44:46 -07:00
class Merge 7.2-rc3 into usb-next 2026-07-13 07:09:28 +02:00
common USB: ulpi: fix memory leak on registration failure 2026-06-25 15:11:27 +01:00
core usb: usbfs: fix use-after-free of usb_device in usbdev_release() 2026-08-14 10:49:38 +09:00
dwc2 usb: dwc2: gadget: Exit partial power down state when changing USB pull-up 2026-08-14 10:48:41 +09:00
dwc3 usb: dwc3: gadget: Fix use-after-free in dwc3_gadget_free_endpoints due to race condition 2026-08-14 10:49:25 +09:00
early usb: early: xhci-dbc: Fix early_ioremap leak 2025-07-07 11:04:46 +02:00
fotg210 usb: free iso schedules on failed submit 2026-07-08 13:30:38 +02:00
gadget treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
host USB / Thunderbolt changes for 7.3-rc1 2026-08-25 10:44:46 -07:00
image Merge 7.0-rc4 into usb-next 2026-03-16 11:50:48 +01:00
isp1760 Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
misc usb: usbtest: disable dynamic ID support 2026-08-14 10:49:12 +09:00
mon Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
mtu3 Merge 7.2-rc3 into usb-next 2026-07-13 07:09:28 +02:00
musb USB / Thunderbolt changes for 7.3-rc1 2026-08-25 10:44:46 -07:00
phy USB: phy: fsl-usb: fix missing static keywords 2026-07-17 17:54:18 +02:00
renesas_usbhs usb: renesas_usbhs: Fix power-off ordering on unbind 2026-07-10 15:56:24 +02:00
roles usb: roles: get usb role switch from parent only for usb-b-connector 2026-03-11 16:22:22 +01:00
serial USB serial updates for 7.3-rc1 2026-08-14 10:25:23 +09:00
storage USB: storage: add NO_ATA_1X quirk for Longmai USB Key 2026-07-16 17:11:02 +02:00
typec usb: typec: hd3ss3220: fix VBUS regulator error message 2026-08-14 10:49:43 +09:00
usbip treewide: refresh kmalloc_obj() conversions 2026-09-04 21:37:00 -07:00
Kconfig usb: pci-quirks: handle HAS_IOPORT dependency for AMD quirk 2023-10-02 16:19:12 +02:00
Makefile usb: cdns3: Add USBSSP platform driver support 2026-04-27 05:14:18 -06:00
usb-skeleton.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00