Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hwmon: (adc128d818) Fix underflows seen when writing limit attributes
[ Upstream commit 8cad724 ] 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 <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information