linux-sg2042/include/linux/soc
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
..
actions soc: actions: owl-sps: Factor out owl_sps_set_pg() for power-gating 2017-06-23 17:43:27 +02:00
amlogic soc: amlogic: add meson-canvas driver 2018-09-12 21:38:45 -07:00
brcmstb soc: brcmstb: biuctrl: Move to early_initcall 2017-12-20 17:37:44 -08:00
dove License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mediatek soc: mediatek: Add Mediatek CMDQ helper 2018-12-02 20:46:10 +01:00
qcom qcom: soc: llcc-slice: Clear the global drv_data pointer on error 2019-02-12 15:27:14 -06:00
renesas soc: renesas: rcar-sysc: Drop legacy handling 2018-06-18 12:00:29 +02:00
samsung pinctrl: samsung: Write external wakeup interrupt mask 2018-07-24 21:56:41 +02:00
sunxi drivers: soc: sunxi: Introduce SoC driver to map SRAMs 2015-06-01 17:57:34 +02:00
ti ARM: SoC driver updates 2018-06-11 18:15:22 -07:00