WSL2-Linux-Kernel/include/linux/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.h soc: qcom: Add APR bus driver 2018-05-11 12:13:26 +09:00
llcc-qcom.h qcom: soc: llcc-slice: Clear the global drv_data pointer on error 2019-02-12 15:27:14 -06:00
mdt_loader.h remoteproc: qcom: mdt_loader: Make the firmware authentication optional 2018-06-18 15:55:31 -07:00
qmi.h soc: qcom: qmi_interface: Limit txn ids to U16_MAX 2018-11-14 10:02:07 -08:00
smd-rpm.h regulator: qcom: smd: Add pm8998 and pmi8998 regulators 2018-03-28 10:10:22 +08:00
smem.h soc: qcom: smem: introduce qcom_smem_virt_to_phys() 2018-05-25 15:53:59 -05:00
smem_state.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
wcnss_ctrl.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00