From: Takashi Iwai Subject: Re: [PATCH v2] ALSA: hda: Fix race between creating and refreshing sysfs entries Date: Mon, 13 May 2019 14:42:12 +0200 Message-ID: References: <20190513091801.985-1-amadeuszx.slawinski@linux.intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <20190513091801.985-1-amadeuszx.slawinski@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org To: Amadeusz =?UTF-8?B?U8WCYXdpxYRza2k=?= Cc: alsa-devel@alsa-project.org, Jaroslav Kysela , linux-kernel@vger.kernel.org List-Id: alsa-devel@alsa-project.org 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 > --- > > Changes since v1: > - Moved mutexes around the callers > - Added comments noting that functions should be called with mutex held Applied, thanks. Takashi