* [PATCH] ASoC: nau8810: Fix memory leak in nau8810_eq_put error path
@ 2016-08-25 0:55 Axel Lin
0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2016-08-25 0:55 UTC (permalink / raw)
To: Mark Brown; +Cc: Axel Lin, alsa-devel, John Hsu, Liam Girdwood
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
sound/soc/codecs/nau8810.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/codecs/nau8810.c b/sound/soc/codecs/nau8810.c
index f9bcdc3..e455186 100644
--- a/sound/soc/codecs/nau8810.c
+++ b/sound/soc/codecs/nau8810.c
@@ -221,6 +221,7 @@ static int nau8810_eq_put(struct snd_kcontrol *kcontrol,
if (ret) {
dev_err(codec->dev, "EQ configuration fail, register: %x ret: %d\n",
reg + i, ret);
+ kfree(data);
return ret;
}
}
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-25 0:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-25 0:55 [PATCH] ASoC: nau8810: Fix memory leak in nau8810_eq_put error path Axel Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).