diff options
author | Axel Lin <axel.lin@ingics.com> | 2016-08-24 20:55:27 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-01 16:06:14 -0400 |
commit | ec103964776bf8af74e66eb1a810eada757718a5 (patch) | |
tree | 647052d480cf00a8468ab9cde643a7c63d0d6ea3 /sound/soc/codecs | |
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>
Diffstat (limited to 'sound/soc/codecs')
-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, | |||
221 | if (ret) { | 221 | if (ret) { |
222 | dev_err(codec->dev, "EQ configuration fail, register: %x ret: %d\n", | 222 | dev_err(codec->dev, "EQ configuration fail, register: %x ret: %d\n", |
223 | reg + i, ret); | 223 | reg + i, ret); |
224 | kfree(data); | ||
224 | return ret; | 225 | return ret; |
225 | } | 226 | } |
226 | } | 227 | } |