mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 02:56:47 +07:00
ASoC: qdsp6: q6routing: add proper error check
q6adm_open can return error pointer or a null in error cases. Fix the return handling. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Acked-by: Niklas Cassel <niklas.cassel@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
2d12c20b98
commit
972562f7aa
@ -310,7 +310,7 @@ int q6routing_stream_open(int fedai_id, int perf_mode,
|
||||
session->channels, topology, perf_mode,
|
||||
session->bits_per_sample, 0, 0);
|
||||
|
||||
if (!copp) {
|
||||
if (IS_ERR_OR_NULL(copp)) {
|
||||
mutex_unlock(&routing_data->lock);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user