summaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2014-07-18 07:31:18 -0700
committerGuenter Roeck <linux@roeck-us.net>2014-07-24 06:25:25 -0700
commit043572d5444116b9d9ad8ae763cf069e7accbc30 (patch)
treefdd8dc8c970e8d401a89f51d4594267896d548d2 /drivers/edac
parent9a3c4145af32125c5ee39c0272662b47307a8323 (diff)
downloadlinux-043572d5444116b9d9ad8ae763cf069e7accbc30.tar.bz2
hwmon: (smsc47m192) Fix temperature limit and vrm write operations
Temperature limit clamps are applied after converting the temperature from milli-degrees C to degrees C, so either the clamp limit needs to be specified in degrees C, not milli-degrees C, or clamping must happen before converting to degrees C. Use the latter method to avoid overflows. vrm is an u8, so the written value needs to be limited to [0, 255]. Cc: Axel Lin <axel.lin@ingics.com> Cc: stable@vger.kernel.org Signed-off-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'drivers/edac')
0 files changed, 0 insertions, 0 deletions