Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce7415f4 authored by OGAWA Hirofumi's avatar OGAWA Hirofumi Committed by Jaroslav Kysela
Browse files

[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: default avatarOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 89be83f8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);