From: Sudip Mukherjee Date: Thu, 10 Sep 2015 12:31:44 +0000 (+0530) Subject: ASoC: dapm: fix memory leak X-Git-Tag: v4.3-rc3~17^2~1^2~4^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75881df3fd7708f234c1e2573ade812eb5701708;p=thirdparty%2Fkernel%2Flinux.git ASoC: dapm: fix memory leak Incase of an unknown event we were directly returning but we missed freeing params. Signed-off-by: Sudip Mukherjee Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index f4bf21a5539b0..ff8bda471b253 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: