From: Takashi Iwai Date: Fri, 28 Nov 2008 13:36:23 +0000 (+0100) Subject: ALSA: hda - Clear codec->proc_widget_hook at reset X-Git-Tag: v2.6.29-rc1~590^2~6^2~30 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=56d17712d54d3aa3d6ef930123d692351d33217c;p=karo-tx-linux.git ALSA: hda - Clear codec->proc_widget_hook at reset Clear the remaining pointer at snd_hda_codec_reset() to avoid Oops. Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 1cb85b73e19b..a867e1e8658a 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -1237,6 +1237,7 @@ void snd_hda_codec_reset(struct hda_codec *codec) } if (codec->patch_ops.free) codec->patch_ops.free(codec); + codec->proc_widget_hook = NULL; codec->spec = NULL; free_hda_cache(&codec->amp_cache); free_hda_cache(&codec->cmd_cache);