Commit c44765b8 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Clear codec->beep at release



Clear codec->beep field in snd_hda_detach_beep_device() to be sure.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent c8dcdf82
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -138,6 +138,7 @@ void snd_hda_detach_beep_device(struct hda_codec *codec)

		input_unregister_device(beep->dev);
		kfree(beep);
		codec->beep = NULL;
	}
}
EXPORT_SYMBOL_HDA(snd_hda_detach_beep_device);