summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2016-08-25 08:55:27 +0800
committerMark Brown <broonie@kernel.org>2016-09-01 21:06:14 +0100
commitec103964776bf8af74e66eb1a810eada757718a5 (patch)
tree647052d480cf00a8468ab9cde643a7c63d0d6ea3 /sound
parent78822e36dca8fe8bc83e7847508891b59f3f8603 (diff)
ASoC: nau8810: Fix memory leak in nau8810_eq_put error path
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/nau8810.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}