From e2c26f058e31619b548046b84fe2c2116cb5016f Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Mon, 19 Jan 2015 09:16:53 -0800 Subject: [PATCH] hwmon: (jc42) Fix integer overflow when writing hysteresis value Subtracting an unsigned long from a signed value causes an overflow with large values. Use clamp_val() to reduce the number range prior to subtracting it from the temperature limit. Signed-off-by: Guenter Roeck Reviewed-by: Jean Delvare --- Reading git-format-patch failed