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: http://git.maquefel.me/?a=commitdiff_plain;h=ec103964776bf8af74e66eb1a810eada757718a5;p=linux.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 f9bcdc33df843..e45518629968b 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; } }