diff options
author | Axel Lin <axel.lin@ingics.com> | 2016-08-25 08:55:27 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-01 21:06:14 +0100 |
commit | ec103964776bf8af74e66eb1a810eada757718a5 (patch) | |
tree | 647052d480cf00a8468ab9cde643a7c63d0d6ea3 /sound/soc | |
parent | 78822e36dca8fe8bc83e7847508891b59f3f8603 (diff) | |
download | linux-ec103964776bf8af74e66eb1a810eada757718a5.tar.gz linux-ec103964776bf8af74e66eb1a810eada757718a5.tar.bz2 linux-ec103964776bf8af74e66eb1a810eada757718a5.zip |
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/soc')
-rw-r--r-- | sound/soc/codecs/nau8810.c | 1 |
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; } } |