diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-06-21 15:21:05 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2012-07-22 06:48:44 +0200 |
commit | 75311bea569d7ea77a5a3c5395bae27bb8a2df96 (patch) | |
tree | 2ce0cbffa47a9af6640a22f536d081a14d3a85f3 /firmware/e100 | |
parent | hwmon: (acpi_power_meter) Cleanup and optimizations (diff) | |
download | linux-75311bea569d7ea77a5a3c5395bae27bb8a2df96.tar.xz linux-75311bea569d7ea77a5a3c5395bae27bb8a2df96.zip |
hwmon: (acpi_power_meter) Fix unintentional integer overflow
Expression with two integer variables is calculated as integer before it is
converted to u64. This may result in an integer overflow. Fix by declaring
trip point variables as s64 instead of int.
This patch addresses Coverity #200596: Unintentional integer overflow.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'firmware/e100')
0 files changed, 0 insertions, 0 deletions