Re: [PATCHv2] dmaengine: st_fdma: simplify allocation
From: Rosen Penev
Date: Mon Jun 08 2026 - 16:52:29 EST
On Mon, Jun 8, 2026 at 9:25 AM Frank Li <Frank.li@xxxxxxxxxxx> wrote:
>
> On Sun, Jun 07, 2026 at 10:18:29PM -0700, Rosen Penev wrote:
>
> Nit: dmaengine: st_fdma: simplify allocation by using flexible array
that's in the description. Did it that was to not have it as long,
flexible array member is the proper terminology.
>
> Reviewed-by: Frank Li <Frank.Li@xxxxxxx>
>
> > 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 <rosenp@xxxxxxxxx>
> > ---
> >