[PATCHv2] dmaengine: st_fdma: simplify allocation

Frank Li Frank.li at oss.nxp.com
Mon Jun 8 09:25:26 PDT 2026


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 at 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 <rosenp at gmail.com>
> ---
>



More information about the linux-arm-kernel mailing list