Commit 75881df3 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Mark Brown

ASoC: dapm: fix memory leak

Incase of an unknown event we were directly returning but we missed
freeing params.
Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 91931320
...@@ -3501,7 +3501,7 @@ static int snd_soc_dai_link_event(struct snd_soc_dapm_widget *w, ...@@ -3501,7 +3501,7 @@ static int snd_soc_dai_link_event(struct snd_soc_dapm_widget *w,
default: default:
WARN(1, "Unknown event %d\n", event); WARN(1, "Unknown event %d\n", event);
return -EINVAL; ret = -EINVAL;
} }
out: out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment