Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e31a3a1 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: pcm: Remove double free in case of error condition"

parents 36cfb8ee fd2c4b11
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2213,11 +2213,9 @@ static int dpcm_fe_dai_open(struct snd_pcm_substream *fe_substream)
	mutex_lock_nested(&fe->card->mutex, SND_SOC_CARD_CLASS_RUNTIME);
	fe->dpcm[stream].runtime = fe_substream->runtime;

	if (dpcm_path_get(fe, stream, &list) <= 0) {
		dpcm_path_put(&list);
	if (dpcm_path_get(fe, stream, &list) <= 0)
		dev_dbg(fe->dev, "ASoC: %s no valid %s route\n",
			fe->dai_link->name, stream ? "capture" : "playback");
	}

	/* calculate valid and active FE <-> BE dpcms */
	dpcm_process_paths(fe, stream, &list, 1);