]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: fhci: use kzalloc_flex for priv struct
authorRosen Penev <rosenp@gmail.com>
Fri, 13 Mar 2026 00:34:55 +0000 (17:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2026 15:00:34 +0000 (16:00 +0100)
commit03cd4fd620bdfc33ea25f2f7504f0d49c7dd1f9e
tree462296fa9843f7d196869def9e74b482a03b1fee
parent341434a444024f70f1f7c2355bb1ae8dc5fb15fe
usb: fhci: use kzalloc_flex for priv struct

Convert kzalloc_obj(s) to kzalloc_flex to save an allocation.

Add __counted_by to get extra runtime analysis. Move counting variable
assignment immediately after allocation as required by __counted_by.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260313003456.124270-1-rosenp@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/fhci-hcd.c
drivers/usb/host/fhci.h