Thread (2 messages) 2 messages, 2 authors, 22d ago

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

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2026-07-04 06:59:06
Also in: linux-hardening, linux-mediatek, linux-usb, lkml

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 <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help