]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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 1cb85b73e19b8c81265a3f5f3b7eace34a329f24..a867e1e8658a4769b31abb34f07965cd17f73a75 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);