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

Commit 5f816697 authored by Jaroslav Kysela's avatar Jaroslav Kysela Committed by Takashi Iwai
Browse files

ALSA: hda: beep - add missing cancel_delayed_work



The unregister work should be also canceled in snd_hda_detach_beep_device()
function.

Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 13dab080
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -239,6 +239,7 @@ void snd_hda_detach_beep_device(struct hda_codec *codec)
	struct hda_beep *beep = codec->beep;
	struct hda_beep *beep = codec->beep;
	if (beep) {
	if (beep) {
		cancel_work_sync(&beep->register_work);
		cancel_work_sync(&beep->register_work);
		cancel_delayed_work(&beep->unregister_work);
		if (beep->enabled)
		if (beep->enabled)
			snd_hda_do_detach(beep);
			snd_hda_do_detach(beep);
		codec->beep = NULL;
		codec->beep = NULL;