Re: [PATCH] ALSA: jack: Protect debugfs setup against control removal

From: Cen Zhang

Date: Fri Oct 16 2026 - 09:31:07 EST


Hi Takashi,

Takashi Iwai <tiwai@xxxxxxx> 于2026年10月16日周五 21:06写道:
>
> OK. Meanwhile, I think we should work on the jack driver code a bit
> more regarding the debugfs: namely, the debugfs is exposed already at
> the creation of kctls, so they are accessible before other interface
> registration via snd_card_register(). The debugfs addition should be
> rather moved to the register phase for avoiding the unexpected access
> via debugfs, instead. I'm going to submit a patch later.
>
>
> thanks,
>
> Takashi

It seems that this problem does indeed exist. Once you send this patch,
I’ll be happy to help review it. Thank you very much.

Best regards,
Cen Zhang