summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-09-10 14:31:44 +0200
committerMark Brown <broonie@kernel.org>2015-09-11 13:15:52 +0200
commit75881df3fd7708f234c1e2573ade812eb5701708 (patch)
treecd95d0edbe47643908204814b74e9ef7aaad86b5 /sound/soc
parentMerge remote-tracking branches 'asoc/topic/wm8996', 'asoc/topic/xtensa' and '... (diff)
downloadlinux-75881df3fd7708f234c1e2573ade812eb5701708.tar.xz
linux-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/soc')
-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: