Explorar o código

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>
Sudip Mukherjee %!s(int64=10) %!d(string=hai) anos
pai
achega
75881df3fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sound/soc/soc-dapm.c

+ 1 - 1
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: