]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
most: usb: Use kzalloc_objs for endpoint address array
authorThorsten Blum <thorsten.blum@linux.dev>
Wed, 25 Feb 2026 18:03:29 +0000 (19:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 15:06:09 +0000 (17:06 +0200)
commitbdb6189600cd0ac8d048550a7cdd773ce5516cca
treefd9b305edc850b649302aa57ebde511d40a36ee2
parent71f0a267346b330ab1c4d15d98fe6fa64b3b091b
most: usb: Use kzalloc_objs for endpoint address array

Replace kcalloc() with kzalloc_objs() when allocating the endpoint
address array to keep the size type-safe and match nearby allocations.
Reformat ->busy_urbs allocation to a single line. No functional change.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Kees Cook <kees@kernel.org>
Link: https://patch.msgid.link/20260225180329.712101-2-thorsten.blum@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/most/most_usb.c