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-Url: https://git.stricted.de/?a=commitdiff_plain;h=ec103964776bf8af74e66eb1a810eada757718a5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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; } }