diff --git a/kernel/chips/w83781d.c b/kernel/chips/w83781d.c index 36f9be78..6d871687 100644 --- a/kernel/chips/w83781d.c +++ b/kernel/chips/w83781d.c @@ -216,7 +216,7 @@ static inline u8 DIV_TO_REG(long val, enum chips type) int i; val = SENSORS_LIMIT(val, 1, ((type == w83781d || type == as99127f) ? 8 : 128)) >> 1; - for (i = 0; i < 6; i++) { + for (i = 0; i < 7; i++) { if (val == 0) break; val >>= 1;