Unverified Commit e91b65b3 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown
Browse files

ASoC: soc-pcm: Fix an uninitialized error code



The error path here doesn't set "ret" so it returns uninitialized data
instead of a negative error code.

Fixes: 2c138284 ("ASoC: soc-pcm: disconnect BEs if the FE is not ready")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X/wfXQFxeMLvpO+1@mwanda


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent fe9989fb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2444,6 +2444,7 @@ static int dpcm_run_update_startup(struct snd_soc_pcm_runtime *fe, int stream)
		ret = -EINVAL;
		dev_err(fe->dev, "ASoC: FE %s is not ready %d\n",
			fe->dai_link->name, fe->dpcm[stream].state);
		ret = -EINVAL;
		goto disconnect;
	}