Explorar o código

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>
Takashi Iwai %!s(int64=16) %!d(string=hai) anos
pai
achega
56d17712d5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      sound/pci/hda/hda_codec.c

+ 1 - 0
sound/pci/hda/hda_codec.c

@@ -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);