- Fix bogus thermal shutdowns for omap4430 where bogus values
  resulting from an incorrect ADC conversion are too high and fire an
  emergency shutdown (Tony Lindgren)

- Don't suppress negative temp for qcom spmi as they are valid and
  userspace needs them (Veera Vegivada)

- Fix use-after-free in thermal_zone_device_unregister reported by
  Kasan (Dmitry Osipenko)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEGn3N4YVz0WNVyHskqDIjiipP6E8FAl9SDUEACgkQqDIjiipP
6E8WaQf9E9rL33RT3kgXhO5ds/I8H0KByxwecF7dtciuvvgHP7ZTWpvrXkDDeUf9
oMoGWGbxyWLQPeljUpa2ZE1UmpYqTQXBGu9MHY/G7go9qGXNnzk8tKYvWoFn24G8
4kqm7Fm8Ui8xBAhtfGXHYildrgBDk+vglCCOmrqTjllNMc02JSqx0tzGxCTlmMnD
oItcCFjtOxhvugjzcomKESPnpVE0OPFtVobornZ0AplwXSoPtpail7qAyNmvKyNG
Y6jy87mu6I76BvItNeTjlIgTDG5qxtHa/ETNgOzZoapmUYWZ965zYtwnT0ELewBF
1NYDWwyDX0KO3hn1dc9M3KS3kcip6g==
=qqem
-----END PGP SIGNATURE-----
thermal: core: Fix use-after-free in thermal_zone_device_unregister()

The user-after-free bug in thermal_zone_device_unregister() is reported by
KASAN. It happens because struct thermal_zone_device is released during of
device_unregister() invocation, and hence the "tz" variable shouldn't be
touched by thermal_notify_tz_delete(tz->id).

Fixes: 55cdf0a283b8 ("thermal: core: Add notifications call in the framework")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200817235854.26816-1-digetx@gmail.com
1 file changed