Thread (4 messages) 4 messages, 2 authors, 2026-06-09

Re: [PATCHv2] dmaengine: st_fdma: simplify allocation

From: Frank Li <hidden>
Date: 2026-06-08 16:25:39
Also in: dmaengine, linux-hardening, lkml

On Sun, Jun 07, 2026 at 10:18:29PM -0700, Rosen Penev wrote:

Nit: dmaengine: st_fdma: simplify allocation by using flexible array

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Use a flexible array member to combine kzalloc and kcalloc to a single
allocation.

Add __counted_by for extra runtime analysis. Assign counting variable
after allocation before any array accesses.

Signed-off-by: Rosen Penev <redacted>
---
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help