ASoC: qdsp6: q6routing: add proper error check
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tue, 26 Jun 2018 09:20:15 +0000 (10:20 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 26 Jun 2018 14:41:38 +0000 (15:41 +0100)
commit972562f7aaaa261ec6e1ac14fed0c5bdd0dfb1cb
treeef6e1d33a309ed5e57140754cc1f7ffd55616316
parent2d12c20b98ad610892151da37367f2d018181455
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>
sound/soc/qcom/qdsp6/q6routing.c