public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] ASoC: max98088 - fix a memory leak
@ 2010-11-23  7:56 Axel Lin
  2010-11-23  7:57 ` [PATCH 2/3] ASoC: wm8904 - fix memory leaks Axel Lin
  2010-11-23 10:33 ` [PATCH 1/3] ASoC: max98088 - fix a memory leak Liam Girdwood
  0 siblings, 2 replies; 5+ messages in thread
From: Axel Lin @ 2010-11-23  7:56 UTC (permalink / raw)
  To: linux-kernel; +Cc: Liam Girdwood, Mark Brown, Peter Hsiang, Jesse Marroquin

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 sound/soc/codecs/max98088.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/sound/soc/codecs/max98088.c b/sound/soc/codecs/max98088.c
index 4ee5b1a..b679586 100644
--- a/sound/soc/codecs/max98088.c
+++ b/sound/soc/codecs/max98088.c
@@ -2020,7 +2020,10 @@ err_access:
 
 static int max98088_remove(struct snd_soc_codec *codec)
 {
+       struct max98088_priv *max98088 = snd_soc_codec_get_drvdata(codec);
+
        max98088_set_bias_level(codec, SND_SOC_BIAS_OFF);
+       kfree(max98088->eq_texts);
 
        return 0;
 }
-- 
1.7.2




^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-11-23 14:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-23  7:56 [PATCH 1/3] ASoC: max98088 - fix a memory leak Axel Lin
2010-11-23  7:57 ` [PATCH 2/3] ASoC: wm8904 - fix memory leaks Axel Lin
2010-11-23  7:58   ` [PATCH 3/3] ASoC: wm8994 " Axel Lin
2010-11-23 10:33 ` [PATCH 1/3] ASoC: max98088 - fix a memory leak Liam Girdwood
2010-11-23 14:53   ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox