summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-09-10 12:31:44 (GMT)
committerMark Brown <broonie@kernel.org>2015-09-11 11:15:52 (GMT)
commit75881df3fd7708f234c1e2573ade812eb5701708 (patch)
treecd95d0edbe47643908204814b74e9ef7aaad86b5 /sound
parent91931320cfbbcc1dd874c2d0aef62e7d90f07f70 (diff)
downloadlinux-75881df3fd7708f234c1e2573ade812eb5701708.tar.xz
ASoC: dapm: fix memory leak
Incase of an unknown event we were directly returning but we missed freeing params. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-dapm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index f4bf21a..ff8bda4 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -3501,7 +3501,7 @@ static int snd_soc_dai_link_event(struct snd_soc_dapm_widget *w,
default:
WARN(1, "Unknown event %d\n", event);
- return -EINVAL;
+ ret = -EINVAL;
}
out: