projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78822e3
)
ASoC: nau8810: Fix memory leak in nau8810_eq_put error path
author
Axel Lin
<axel.lin@ingics.com>
Thu, 25 Aug 2016 00:55:27 +0000
(08:55 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 1 Sep 2016 20:06:14 +0000
(21:06 +0100)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/nau8810.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/nau8810.c
b/sound/soc/codecs/nau8810.c
index f9bcdc33df84318548dabf1b18882470bcf58ad6..e45518629968b53ab01a044459a237f0ef1eb29f 100644
(file)
--- 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;
}
}