OpenCloudOS-Kernel/drivers/soc/qcom
Luca Weiss 01f937ffc4 soc: qcom: ocmem: don't return NULL in of_get_ocmem
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>
2021-02-02 15:39:13 -06:00
..
Kconfig soc: qcom: Kconfig: make RPMH match Command DB setting 2020-10-27 16:44:58 -05:00
Makefile PM: AVS: qcom-cpr: Move the driver to the qcom specific drivers 2020-10-22 18:38:21 +02: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: allow loading as a module 2020-10-26 16:02:29 -05:00
cpr.c 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: kryo-l2-accessors: Fix misnaming of 'val' 2020-11-10 23:23:02 -06:00
llcc-qcom.c soc: qcom: llcc-qcom: Add support for SM8250 SoC 2020-12-28 12:15:14 -06:00
mdt_loader.c remoteproc updates for v5.3 2019-07-17 11:44:41 -07:00
ocmem.c soc: qcom: ocmem: don't return NULL in of_get_ocmem 2021-02-02 15:39:13 -06:00
pdr_interface.c soc: qcom: pdr: Constify static qmi structs 2020-11-22 23:06:23 -06: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-geni-se.c soc: qcom: geni: Remove "iova" check 2020-11-21 21:26:19 -06:00
qcom_aoss.c soc: qcom: aoss: Add SM8350 compatible 2021-01-27 08:34:45 -06:00
qcom_gsbi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 409 2019-06-05 17:37:14 +02:00
qmi_encdec.c soc: qcom: Introduce QMI encoder/decoder 2017-12-20 15:38:34 -06:00
qmi_interface.c soc: qcom: qmi: Return EPROBE_DEFER if no address family 2019-12-10 22:44:34 -08:00
rmtfs_mem.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
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: Remove serialization of TCS commands 2021-01-07 10:59:46 -06:00
rpmh.c soc: qcom: rpmh: Use __fill_rpmh_msg API during rpmh_write() 2020-11-26 11:43:00 -06:00
rpmhpd.c soc: qcom: rpmhpd: Add SDX55 power domains 2020-11-26 11:50:31 -06:00
rpmpd.c drivers: soc: qcom: rpmpd: Add msm8994 RPM Power Domains 2021-01-25 12:37:43 -06:00
smd-rpm.c soc: qcom: smd-rpm: Fix kerneldoc 2020-07-29 13:39:43 -07:00
smem.c soc: qcom: smem: use %*ph to print small buffer 2020-12-28 14:15:09 -06:00
smem_state.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
smp2p.c soc: qcom: smp2p: Remove unused struct attribute provide another 2020-11-10 23:20:44 -06:00
smsm.c soc: qcom: smsm: Fix some kernel-doc formatting and naming problems 2020-11-10 23:13:30 -06:00
socinfo.c soc: qcom: socinfo: Remove unwanted le32_to_cpu() 2021-01-27 22:08:42 -06:00
trace-rpmh.h drivers: qcom: rpmh-rsc: log RPMH requests in FTRACE 2018-07-21 13:32:31 -05:00
wcnss_ctrl.c soc: qcom: wcnss_ctrl: Demote non-conformant struct header and fix function headers 2020-11-10 23:14:59 -06:00