Re: [PATCHv2] usb: mtu3: allocate phys with ssusb

From: Greg Kroah-Hartman

Date: Sat Jul 04 2026 - 02:59:43 EST


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@xxxxxxxxx>
> ---
> 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