diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-09-10 14:31:44 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-09-11 13:15:52 +0200 |
commit | 75881df3fd7708f234c1e2573ade812eb5701708 (patch) | |
tree | cd95d0edbe47643908204814b74e9ef7aaad86b5 /sound/soc/soc-dapm.c | |
parent | Merge remote-tracking branches 'asoc/topic/wm8996', 'asoc/topic/xtensa' and '... (diff) | |
download | linux-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/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 2 |
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: |