提交 56d17712 编写于 作者: T Takashi Iwai

ALSA: hda - Clear codec->proc_widget_hook at reset

Clear the remaining pointer at snd_hda_codec_reset() to avoid Oops.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 2d34e1b3
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册