Guenter Roeck 5c1de37969 hwmon: (w83627ehf) Fix underflows seen when writing limit attributes
DIV_ROUND_CLOSEST() after kstrtol() results in an underflow if a large
negative number such as -9223372036854775808 is provided by the user.
Fix it by reordering clamp_val() and DIV_ROUND_CLOSEST() operations.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2024-07-07 07:48:25 -07:00
..
2023-12-11 06:21:01 -08:00
2024-07-02 12:36:31 -07:00
2024-03-07 09:17:40 -08:00
2023-04-27 11:53:57 -07:00
2024-06-04 09:58:32 -07:00
2024-06-13 16:44:34 -07:00
2019-11-06 14:37:19 -08:00
2024-02-25 12:37:10 -08:00
2023-10-31 17:44:17 -10:00