From: Takashi Iwai Date: Fri, 6 Feb 2009 15:48:10 +0000 (+0100) Subject: ALSA: hda - Clear codec->beep at release X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c44765b8c8bfc883c9868ab7aef37d27b5b14be8;p=openwrt%2Fstaging%2Fblogic.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 960fd7970384..4de5bacd3929 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);