Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56d17712 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Clear codec->proc_widget_hook at reset



Clear the remaining pointer at snd_hda_codec_reset() to avoid Oops.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 2d34e1b3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);