aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2021-06-16 22:04:13 +0300
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-07-04 18:28:04 +0200
commit5e5c9f9a75fc4532980c2e699caf8a36070a3a2e (patch)
tree7f98c38316c22849c4bebd0ab69293d0f377d308 /Documentation/devicetree
parent1aab6b81af3c96e3181911140d2528e112335bef (diff)
downloadlinux-5e5c9f9a75fc4532980c2e699caf8a36070a3a2e.tar.gz
thermal/core/thermal_of: Stop zone device before unregistering it
Zone device is enabled after thermal_zone_of_sensor_register() completion, but it's not disabled before senor is unregistered, leaving temperature polling active. This results in accessing a disabled zone device and produces a warning about this problem. Stop zone device before unregistering it in order to fix this "use-after-free" problem. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20210616190417.32214-3-digetx@gmail.com
Diffstat (limited to 'Documentation/devicetree')
0 files changed, 0 insertions, 0 deletions