Re: [PATCH v2] ALSA: hda: Fix race between creating and refreshing sysfs entries
From: Takashi Iwai
Date: Mon May 13 2019 - 08:43:46 EST
On Mon, 13 May 2019 11:18:01 +0200,
Amadeusz SÅawiÅski wrote:
>
> hda_widget_sysfs_reinit() can free underlying codec->widgets structure
> on which widget_tree_create() operates. Add locking to prevent such
> issues from happening.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110382
> Signed-off-by: Amadeusz SÅawiÅski <amadeuszx.slawinski@xxxxxxxxxxxxxxx>
> ---
>
> Changes since v1:
> - Moved mutexes around the callers
> - Added comments noting that functions should be called with mutex held
Applied, thanks.
Takashi