linux_dsm_epyc7002/drivers/soc/qcom
Luca Weiss 84f9aaa731 soc: qcom: ocmem: don't return NULL in of_get_ocmem
[ Upstream commit 01f937ffc4686837d6c43dea80c6ade6cbd2940a ]

If ocmem probe fails for whatever reason, of_get_ocmem returned NULL.
Without this, users must check for both NULL and IS_ERR on the returned
pointer - which didn't happen in drivers/gpu/drm/msm/adreno/adreno_gpu.c
leading to a NULL pointer dereference.

Reviewed-by: Brian Masney <masneyb@onstation.org>
Fixes: 88c1e9404f ("soc: qcom: add OCMEM driver")
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Link: https://lore.kernel.org/r/20210130142349.53335-1-luca@z3ntu.xyz
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:37:27 +01:00
..
apr.c soc: qcom: apr: Fixup the error displayed on lookup failure 2020-09-15 16:12:59 +00:00
cmd-db.c
cpr.c PM: AVS: qcom-cpr: Move the driver to the qcom specific drivers 2020-10-22 18:38:21 +02:00
Kconfig PM: AVS: qcom-cpr: Move the driver to the qcom specific drivers 2020-10-22 18:38:21 +02:00
kryo-l2-accessors.c
llcc-qcom.c soc: qcom: llcc: use devm_platform_ioremap_resource_byname() 2020-09-17 04:24:49 +00:00
Makefile PM: AVS: qcom-cpr: Move the driver to the qcom specific drivers 2020-10-22 18:38:21 +02:00
mdt_loader.c
ocmem.c soc: qcom: ocmem: don't return NULL in of_get_ocmem 2021-03-04 11:37:27 +01:00
pdr_interface.c soc: qcom: initialize local variable 2020-12-30 11:53:19 +01:00
pdr_internal.h soc: qcom: pdr: Fixup array type of get_domain_list_resp message 2020-09-14 23:53:29 +00:00
qcom_aoss.c
qcom_gsbi.c
qcom-geni-se.c soc: qcom: geni: More properly switch to DMA mode 2020-12-30 11:52:57 +01:00
qmi_encdec.c
qmi_interface.c
rmtfs_mem.c
rpmh-internal.h soc: qcom: rpmh-rsc: Sleep waiting for tcs slots to be free 2020-09-10 16:56:12 +00:00
rpmh-rsc.c soc: qcom: rpmh-rsc: Sleep waiting for tcs slots to be free 2020-09-10 16:56:12 +00:00
rpmh.c
rpmhpd.c
rpmpd.c
smd-rpm.c
smem_state.c
smem.c
smp2p.c soc: qcom: smp2p: Safely acquire spinlock without IRQs 2020-12-30 11:54:22 +01:00
smsm.c
socinfo.c soc: qcom: socinfo: Fix an off by one in qcom_show_pmic_model() 2021-03-04 11:37:24 +01:00
trace-rpmh.h
wcnss_ctrl.c