[alsa-devel] [PATCH v2] ALSA: hda: Fix race between creating and refreshing sysfs entries

Takashi Iwai tiwai at suse.de
Mon May 13 14:42:12 CEST 2019


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 at linux.intel.com>
> ---
> 
> Changes since v1:
>  - Moved mutexes around the callers
>  - Added comments noting that functions should be called with mutex held

Applied, thanks.


Takashi


More information about the Alsa-devel mailing list