mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
ASoC: codecs: Check for error pointer after calling devm_regmap_init_mmio
Since the potential failure of the devm_regmap_init_mmio(), it will return error pointer and be assigned to the regmap. Then the error pointer will be dereferenced. For example rx->regmap will be used in rx_macro_mclk_enable(). Therefore, it should be better to check it. Fixes:af3d54b997("ASoC: codecs: lpass-rx-macro: add support for lpass rx macro") Fixes:c39667ddcf("ASoC: codecs: lpass-tx-macro: add support for lpass tx macro") Fixes:809bcbcece("ASoC: codecs: lpass-wsa-macro: Add support to WSA Macro") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Link: https://lore.kernel.org/r/20220121171031.2826198-1-jiasheng@iscas.ac.cn Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
dbf2f8e3fe
commit
aa505ecccf
3 changed files with 6 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue