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: 2c1382840c
("ASoC: soc-pcm: disconnect BEs if the FE is not ready")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X/wfXQFxeMLvpO+1@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
fe9989fb25
commit
e91b65b36f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue