Re: [PATCH] ALSA: hda: allocate nodes with tree

From: Takashi Iwai

Date: Mon Apr 27 2026 - 08:00:12 EST


On Mon, 27 Apr 2026 13:47:12 +0200,
Takashi Iwai wrote:
>
> On Sat, 25 Apr 2026 04:34:21 +0200,
> Rosen Penev wrote:
> >
> > Use a flexible array member to combine allocations. Simplifies
> > allocation and freeing.
> >
> > Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
>
> Applied to for-next branch now. Thanks.

Scratch that. I re-read the code, and noticed that it doesn't handle
the case in hda_widget_sysfs_reinit(). It can resize and reallocate
the node table, hence the embedded flex array won't work.


thanks,

Takashi