mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
f9f7f29f64
If IORESOURCE_MEM "lpass-rxtx-cdc-dma-lpm" or "lpass-va-cdc-dma-lpm"
resources is not provided in Device Tree due to any error,
platform_get_resource_byname() will return NULL which is later
dereferenced. According to sound/qcom,lpass-cpu.yaml, these resources
are provided, but DT can be broken due to any error. In such cases driver
must be able to protect itself, since the DT is external data for the
driver.
Adjust this issues by adding NULL return check.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes:
|
||
---|---|---|
.. | ||
qdsp6 | ||
apq8016_sbc.c | ||
apq8096.c | ||
common.c | ||
common.h | ||
Kconfig | ||
lpass-apq8016.c | ||
lpass-cdc-dma.c | ||
lpass-cpu.c | ||
lpass-hdmi.c | ||
lpass-hdmi.h | ||
lpass-ipq806x.c | ||
lpass-lpaif-reg.h | ||
lpass-platform.c | ||
lpass-sc7180.c | ||
lpass-sc7280.c | ||
lpass.h | ||
Makefile | ||
sc7180.c | ||
sc7280.c | ||
sc8280xp.c | ||
sdm845.c | ||
sdw.c | ||
sdw.h | ||
sm8250.c | ||
storm.c | ||
x1e80100.c |