[PATCHv2] usb: mtu3: allocate phys with ssusb

Greg Kroah-Hartman gregkh at linuxfoundation.org
Fri Jul 3 23:57:40 PDT 2026


On Fri, Jul 03, 2026 at 03:03:08PM -0700, Rosen Penev wrote:
> Use a flexible array member to combine allocations. Slightly more
> efficient to have a single allocation like this.
> 
> Add __counted_by for extra runtime analysis.
> 
> Signed-off-by: Rosen Penev <rosenp at gmail.com>
> ---
>  v2: add max() call to prevent negative values.

That is NOT the correct solution at all.  Please do not just throw away
error values and assume all will be fine.

greg k-h



More information about the linux-arm-kernel mailing list