diff options
author | Axel Lin <axel.lin@ingics.com> | 2016-08-25 02:55:27 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-01 22:06:14 +0200 |
commit | ec103964776bf8af74e66eb1a810eada757718a5 (patch) | |
tree | 647052d480cf00a8468ab9cde643a7c63d0d6ea3 /sound/soc/codecs/nau8810.c | |
parent | ASoC: nau8810: fix compile warning in loopback switch control (diff) | |
download | linux-ec103964776bf8af74e66eb1a810eada757718a5.tar.xz 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/codecs/nau8810.c')
-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; } } |