ALSA: hda - Clear codec->proc_widget_hook at reset
authorTakashi Iwai <tiwai@suse.de>
Fri, 28 Nov 2008 13:36:23 +0000 (14:36 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 28 Nov 2008 13:41:09 +0000 (14:41 +0100)
Clear the remaining pointer at snd_hda_codec_reset() to avoid Oops.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c

index 1cb85b7..a867e1e 100644 (file)
@@ -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);