ASoC: codecs: wcd938x: fix missing clsh ctrl error handling
authorJohan Hovold <johan+linaro@kernel.org>
Wed, 5 Jul 2023 12:30:13 +0000 (14:30 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 6 Jul 2023 12:46:25 +0000 (13:46 +0100)
commited0dd9205bf69593edb495cb4b086dbae96a3f05
tree7a2387100e90290ffa0165b05140aa8c8e525a56
parent46ec420573cefa1fc98025e7e6841bdafd6f1e20
ASoC: codecs: wcd938x: fix missing clsh ctrl error handling

Allocation of the clash control structure may fail so add the missing
error handling to avoid dereferencing an error pointer.

Fixes: 8d78602aa87a ("ASoC: codecs: wcd938x: add basic driver")
Cc: stable@vger.kernel.org # 5.14
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230705123018.30903-4-johan+linaro@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd938x.c