linux_dsm_epyc7002/drivers/soc/qcom
Jordan Crouse 72d1cd0331 qcom: soc: llcc-slice: Clear the global drv_data pointer on error
Currently the data structure for llc-slice is devm allocated and
stored as a global but never cleared if the probe function fails.
This is a problem because devm managed memory gets freed on probe
failure the API functions could access the pointer after it has been
freed.

Initialize the drv_data pointer to an error and reset it to an error
on probe failure or device destroy and add protection to the API
functions to make sure the memory doesn't get accessed.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
2019-02-12 15:27:14 -06:00
..
apr.c ARM: SoC driver updates for 4.17 2018-10-29 15:16:01 -07:00
cmd-db.c soc: qcom: cmd-db: Stop memcpy()ing in cmd_db_read_aux_data() 2018-11-14 10:06:24 -08:00
glink_ssr.c soc: qcom: GLINK SSR notifier 2017-08-02 12:43:29 -07:00
Kconfig soc: qcom: update config dependencies for QCOM_RPMPD 2019-01-22 15:36:04 -06:00
llcc-sdm845.c qcom: soc: llcc-slice: Clear the global drv_data pointer on error 2019-02-12 15:27:14 -06:00
llcc-slice.c qcom: soc: llcc-slice: Clear the global drv_data pointer on error 2019-02-12 15:27:14 -06:00
Makefile soc: qcom: rpmhpd: Add RPMh power domain driver 2019-01-22 15:10:15 -06:00
mdt_loader.c remoteproc: qcom: mdt_loader: Make the firmware authentication optional 2018-06-18 15:55:31 -07:00
qcom_gsbi.c soc: qcom: gsbi: Fix error handling in gsbi_probe() 2019-02-01 16:08:52 -06:00
qcom-geni-se.c soc: qcom: Add irq clear handling during SE init 2018-11-14 09:51:50 -08:00
qmi_encdec.c soc: qcom: Introduce QMI encoder/decoder 2017-12-20 15:38:34 -06:00
qmi_interface.c soc: qcom: qmi_interface: Limit txn ids to U16_MAX 2018-11-14 10:02:07 -08:00
rmtfs_mem.c soc: qcom: rmtfs-mem: Make sysfs attributes world-readable 2019-02-01 16:08:34 -06:00
rpmh-internal.h drivers: qcom: rpmh: add support for batch RPMH request 2018-07-21 13:33:36 -05:00
rpmh-rsc.c drivers: qcom: rpmh-rsc: clear wait_for_compl after use 2018-09-13 16:11:39 -05:00
rpmh.c soc: qcom: rpmh: Avoid accessing freed memory from batch API 2019-02-01 16:08:45 -06:00
rpmhpd.c soc: qcom: rpmhpd: Mark mx as a parent for cx 2019-01-22 15:10:15 -06:00
rpmpd.c soc: qcom: rpmpd: Drop family A RPM dependency 2019-01-22 15:35:10 -06:00
smd-rpm.c soc: qcom: smd-rpm: Add sdm660 compatible 2019-02-01 16:08:58 -06:00
smem_state.c soc: qcom: Update properties for smem state referencing 2016-06-24 22:53:41 -05:00
smem.c soc: qcom: smem: a few last cleanups 2018-09-13 16:57:11 -05:00
smp2p.c soc: qcom: smp2p: Use common error handling code in qcom_smp2p_probe() 2018-01-01 00:29:09 -06:00
smsm.c soc: qcom: smsm: fix child-node lookup 2017-12-20 15:38:34 -06:00
spm.c soc: qcom: spm: add SCM probe dependency 2018-09-13 16:11:38 -05: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: Avoid string overflow 2018-09-13 16:11:36 -05:00