aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_intelhdmi.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-11-21 03:11:50 -0500
committerTakashi Iwai <tiwai@suse.de>2008-11-21 03:17:30 -0500
commitf208dba97f2f3ff2fbcbe771195061e2a0dac870 (patch)
tree0c9bf38427af8c3c44e6c8e47cbc0ecf7e11f009 /sound/pci/hda/patch_intelhdmi.c
parentb94d3539de59ec6481e38f83c455324fd3aeabc1 (diff)
ALSA: hda - Release ELD proc file
Release ELD proc file when reconfigured so that no leak occurs. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_intelhdmi.c')
-rw-r--r--sound/pci/hda/patch_intelhdmi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_intelhdmi.c b/sound/pci/hda/patch_intelhdmi.c
index 5393f84f6755..58aaf06589a8 100644
--- a/sound/pci/hda/patch_intelhdmi.c
+++ b/sound/pci/hda/patch_intelhdmi.c
@@ -637,7 +637,10 @@ static int intel_hdmi_init(struct hda_codec *codec)
637 637
638static void intel_hdmi_free(struct hda_codec *codec) 638static void intel_hdmi_free(struct hda_codec *codec)
639{ 639{
640 kfree(codec->spec); 640 struct intel_hdmi_spec *spec = codec->spec;
641
642 snd_hda_eld_proc_free(codec, &spec->sink_eld);
643 kfree(spec);
641} 644}
642 645
643static struct hda_codec_ops intel_hdmi_patch_ops = { 646static struct hda_codec_ops intel_hdmi_patch_ops = {