summaryrefslogtreecommitdiffstats
path: root/drivers/soc/amlogic/meson-canvas.c
diff options
context:
space:
mode:
authorJordan Crouse2018-12-11 21:07:45 +0100
committerAndy Gross2019-02-12 22:27:14 +0100
commit72d1cd033154f50e77cd4feb4e16c227b598632e (patch)
tree06fbf3e0029aa0de953db993e49ae8cef4fb1423 /drivers/soc/amlogic/meson-canvas.c
parentsoc: qcom: smd-rpm: Add sdm660 compatible (diff)
downloadkernel-qcow2-linux-72d1cd033154f50e77cd4feb4e16c227b598632e.tar.gz
kernel-qcow2-linux-72d1cd033154f50e77cd4feb4e16c227b598632e.tar.xz
kernel-qcow2-linux-72d1cd033154f50e77cd4feb4e16c227b598632e.zip
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>
Diffstat (limited to 'drivers/soc/amlogic/meson-canvas.c')
0 files changed, 0 insertions, 0 deletions