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 soc: qcom: cmd-db: Properly endian swap the slv_id for debugfs 2020-04-19 23:06:29 -07:00
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 soc: qcom: Separate kryo l2 accessors from PMU driver 2020-07-10 17:08:55 -07:00
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 soc: qcom: aoss: Add SM8250 compatible 2020-05-11 17:17:23 -07:00
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 soc: qcom: qmi: Return EPROBE_DEFER if no address family 2019-12-10 22:44:34 -08:00
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 soc: qcom: rpmh: Update rpmh_invalidate function to return void 2020-06-22 14:23:46 -07:00
rpmhpd.c soc: qcom: rpmhpd: Add SM8250 power domains 2020-04-20 23:31:48 -07:00
rpmpd.c soc: qcom: rpmpd: Allow RPMPD driver to be loaded as a module 2020-04-14 15:39:56 -07:00
smd-rpm.c soc: qcom: smd-rpm: Fix kerneldoc 2020-07-29 13:39:43 -07:00
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