]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: hda - Flush the pending probe work at remove
authorTakashi Iwai <tiwai@suse.de>
Wed, 20 Jan 2016 16:19:02 +0000 (17:19 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:43:17 +0000 (15:43 -0700)
commit108ed5082187e3ae107e0edbada9ba2b12a1713b
tree0d530ceaec27e044e2f58a8c65dda038a7d4fdca
parenta22c6e31f962ec0fe6d2189560ffd0d84b914c0a
ALSA: hda - Flush the pending probe work at remove

Orabug: 23330535

commit 991f86d7ae4e1f8c15806e62f97af519e3cdd860 upstream.

As HD-audio driver does deferred probe internally via workqueue, the
driver might go into the mixed state doing both probe and remove when
the module gets unloaded during the probe work.  This eventually
triggers an Oops, unsurprisingly.

For avoiding this race, we just need to flush the pending probe work
explicitly before actually starting the resource release.

Bugzilla: https://bugzilla.opensuse.org/show_bug.cgi?id=960710
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 2b332719b8f033d77070a4b58e41105b658dc2eb)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
sound/pci/hda/hda_intel.c