OSDN Git Service

ALSA: hda: Fix race between creating and refreshing sysfs entries
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Mon, 13 May 2019 09:18:01 +0000 (11:18 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 13 May 2019 12:41:56 +0000 (14:41 +0200)
commited180abba7f1fc3cf04ffa27767b1bcc8e8c842a
tree5e740e02d4fd92f1721d12ef0a7b0012d76b54a8
parent891afcf2462d2cc4ef7caf94215358ca61fa32cb
ALSA: hda: Fix race between creating and refreshing sysfs entries

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@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hdaudio.h
sound/hda/hdac_device.c
sound/hda/hdac_sysfs.c