Re: [PATCH] ALSA: control: Clear user-provided numid before adding a control

From: Takashi Iwai

Date: Tue Nov 03 2026 - 10:19:08 EST


On Mon, 02 Nov 2026 14:50:34 +0100,
Sreeraj S Kurup wrote:
>
> Clear the user-provided numid before checking for duplicate controls.
>
> A non-existing numid can cause the duplicate control ID check to be
> skipped, allowing a control with the same name and index to be added.
>
> Since the kernel assigns the numid when adding a control,
> ignore the value provided by userspace.
>
> Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@xxxxxxxxx>

Applied now. Thanks.


Takashi