From: Axel Lin Date: Thu, 25 Aug 2016 00:55:27 +0000 (+0800) Subject: ASoC: nau8810: Fix memory leak in nau8810_eq_put error path X-Git-Tag: v6.1~15595^2~4^2~5^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec103964776bf8af74e66eb1a810eada757718a5;p=sdk%2Femulator%2Femulator-kernel.git ASoC: nau8810: Fix memory leak in nau8810_eq_put error path Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/nau8810.c b/sound/soc/codecs/nau8810.c index f9bcdc33df84..e45518629968 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; } }