mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-15 05:11:32 +00:00
[ALSA] sound/pci/hda: use create_singlethread_workqueue()
process_unsol_events() seems to assume a singlethread one (IOW, racey). So, this patch uses create_singlethread_workqueue() instead of create_workqueue(). Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
89be83f8ee
commit
ce7415f496
@ -295,7 +295,7 @@ static int init_unsol_queue(struct hda_bus *bus)
|
||||
snd_printk(KERN_ERR "hda_codec: can't allocate unsolicited queue\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
unsol->workq = create_workqueue("hda_codec");
|
||||
unsol->workq = create_singlethread_workqueue("hda_codec");
|
||||
if (! unsol->workq) {
|
||||
snd_printk(KERN_ERR "hda_codec: can't create workqueue\n");
|
||||
kfree(unsol);
|
||||
|
Loading…
Reference in New Issue
Block a user