mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue