projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d34e1b
)
ALSA: hda - Clear codec->proc_widget_hook at reset
author
Takashi Iwai
<tiwai@suse.de>
Fri, 28 Nov 2008 13:36:23 +0000
(14:36 +0100)
committer
Takashi 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
patch
|
blob
|
history
diff --git
a/sound/pci/hda/hda_codec.c
b/sound/pci/hda/hda_codec.c
index
1cb85b7
..
a867e1e
100644
(file)
--- a/
sound/pci/hda/hda_codec.c
+++ b/
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);