linux/sound/soc/qcom
Colin Ian King a467f2f8ad
ASoC: qcom: add missing out of memory check on drvdata->clks allocation
Currently drvdata->clks is not being checked for an allocation failure,
leading to potential null pointer dereferencing. Fix this by adding a
check and returning -ENOMEM if an error occurred.

Fixes: 1220f6a76e ("ASoC: qcom: Add common array to initialize soc based core clocks")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Rohit kumar <rohitkr@codeaurora.org>
Addresses-Coverity: ("Dereference null return value")
Link: https://lore.kernel.org/r/20200819160103.164893-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-08-20 20:30:33 +01:00
..
qdsp6 ASoC: q6asm-dai: add support to copy callback 2020-08-17 18:29:38 +01:00
apq8016_sbc.c ASoC: qcom: apq8016_sbc: Use qcom_snd_parse_of() 2020-07-24 15:01:19 +01:00
apq8096.c ASoC: qcom: Use devm for resource management 2020-07-24 15:01:15 +01:00
common.c ASoC: qcom: common: Avoid printing errors for -EPROBE_DEFER 2020-07-24 15:01:20 +01:00
common.h ASoC: qcom: remove unused header files from common.h 2018-08-06 12:50:07 +01:00
Kconfig Merge series "ASoC: qcom: Add support for SC7180 lpass variant" from Rohit kumar <rohitkr@codeaurora.org>: 2020-08-18 14:52:57 +01:00
lpass-apq8016.c ASoC: qcom: add missing out of memory check on drvdata->clks allocation 2020-08-20 20:30:33 +01:00
lpass-cpu.c ASoC: qcom: lpass-cpu: Use platform_get_resource 2020-08-17 14:39:32 +01:00
lpass-ipq806x.c ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers 2020-08-17 14:39:29 +01:00
lpass-lpaif-reg.h ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers 2020-08-17 14:39:29 +01:00
lpass-platform.c ASoC: qcom: lpass-platform: Use platform_get_irq 2020-08-17 14:39:33 +01:00
lpass-sc7180.c ASoC: qcom: lpass-sc7180: Add platform driver for lpass audio 2020-08-17 14:39:31 +01:00
lpass.h ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers 2020-08-17 14:39:29 +01:00
Makefile ASoC: qcom: lpass-sc7180: Add platform driver for lpass audio 2020-08-17 14:39:31 +01:00
sdm845.c ASoC: qcom: Use devm for resource management 2020-07-24 15:01:15 +01:00
storm.c ASoC: qcom: use asoc_substream_to_rtd() 2020-07-23 19:07:33 +01:00