summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-09-10 18:01:44 +0530
committerMark Brown <broonie@kernel.org>2015-09-11 12:15:52 +0100
commit75881df3fd7708f234c1e2573ade812eb5701708 (patch)
treecd95d0edbe47643908204814b74e9ef7aaad86b5 /sound
parent91931320cfbbcc1dd874c2d0aef62e7d90f07f70 (diff)
downloadlinux-stable-75881df3fd7708f234c1e2573ade812eb5701708.tar.gz
linux-stable-75881df3fd7708f234c1e2573ade812eb5701708.tar.bz2
linux-stable-75881df3fd7708f234c1e2573ade812eb5701708.zip
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 f4bf21a5539b..ff8bda471b25 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: