summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2021-06-23 07:22:30 +0300
committerGuenter Roeck <linux@roeck-us.net>2021-06-24 07:14:27 -0700
commitb50aa49638c7e12abf4ecc483f4e928c5cccc1b0 (patch)
tree2fa4452247143bf21e425a0937ed54a9e0f90bd1 /tools/perf/scripts/python
parent4c7f85a321a1ac265159c22a6998ef4f2a60c21d (diff)
hwmon: (lm90) Prevent integer underflows of temperature calculations
The min/max/crit and all other temperature values that are passed to the driver are unlimited and value that is close to INT_MIN results in integer underflow of the temperature calculations made by the driver for LM99 sensor. Temperature hysteresis is among those values that need to be limited, but limiting of hysteresis is independent from the sensor version. Add the missing limits. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Link: https://lore.kernel.org/r/20210623042231.16008-2-digetx@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions