Re: [PATCH] ALSA: oss: Use flexible allocation for PCM plugins

From: Takashi Iwai

Date: Tue May 19 2026 - 02:06:31 EST


On Tue, 19 May 2026 02:46:47 +0200,
Rosen Penev wrote:
>
> Allocate PCM plugin objects with kzalloc_flex() for the trailing
> extra data area instead of open-coding the size calculation.
>
> This keeps the allocation tied to the existing flexible array member
> without changing the plugin lifetime.
>
> Assisted-by: Codex:GPT-5.5
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>

Applied to for-next branch. Thanks.


Takashi