summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm9081.c
diff options
context:
space:
mode:
authorJiasheng Jiang <jiasheng@iscas.ac.cn>2022-01-22 01:10:31 +0800
committerMark Brown <broonie@kernel.org>2022-01-24 13:32:00 +0000
commitaa505ecccf2ae7546e0e262d574e18a9241f3005 (patch)
tree3b986e8b75657a1d445c2f0ab94ac606e0b36ea6 /sound/soc/codecs/wm9081.c
parentdbf2f8e3fecd5b2197f406f26fed26042664044e (diff)
downloadlinux-aa505ecccf2ae7546e0e262d574e18a9241f3005.tar.gz
linux-aa505ecccf2ae7546e0e262d574e18a9241f3005.tar.bz2
linux-aa505ecccf2ae7546e0e262d574e18a9241f3005.zip
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: af3d54b99764 ("ASoC: codecs: lpass-rx-macro: add support for lpass rx macro") Fixes: c39667ddcfc5 ("ASoC: codecs: lpass-tx-macro: add support for lpass tx macro") Fixes: 809bcbcecebf ("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>
Diffstat (limited to 'sound/soc/codecs/wm9081.c')
0 files changed, 0 insertions, 0 deletions