mirror of
https://github.com/adulau/aha.git
synced 2025-01-02 14:13:18 +00:00
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 <tiwai@suse.de>
This commit is contained in:
parent
2d34e1b3bb
commit
56d17712d5
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue