From: Takashi Iwai Date: Fri, 6 Feb 2009 15:48:10 +0000 (+0100) Subject: ALSA: hda - Clear codec->beep at release X-Git-Tag: v3.0~9635^2~1^2~105 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c44765b8c8bfc883c9868ab7aef37d27b5b14be8;p=platform%2Fkernel%2Flinux-amlogic.git ALSA: hda - Clear codec->beep at release Clear codec->beep field in snd_hda_detach_beep_device() to be sure. Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/hda_beep.c b/sound/pci/hda/hda_beep.c index 960fd79..4de5bac 100644 --- a/sound/pci/hda/hda_beep.c +++ b/sound/pci/hda/hda_beep.c @@ -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);