commit | ec103964776bf8af74e66eb1a810eada757718a5 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Thu Aug 25 08:55:27 2016 +0800 |
committer | Mark Brown <broonie@kernel.org> | Thu Sep 01 21:06:14 2016 +0100 |
tree | 647052d480cf00a8468ab9cde643a7c63d0d6ea3 | |
parent | 78822e36dca8fe8bc83e7847508891b59f3f8603 [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>
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 @@ if (ret) { dev_err(codec->dev, "EQ configuration fail, register: %x ret: %d\n", reg + i, ret); + kfree(data); return ret; } }