]> git.baikalelectronics.ru Git - kernel.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)
committerTakashi Iwai <tiwai@suse.de>
Wed, 20 Jan 2016 16:19:02 +0000 (17:19 +0100)
commit33a03ed966cddb6533b1caa28c1e1446242e9385
treedf2d842a0b8d74e4fb9cff67ca2d05103a8a3049
parent44d717423e597f190800928a2364944e6a32e143
ALSA: hda - Flush the pending probe work at remove

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
Cc: <stable@vger.kernel.org> # v3.17+
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c