git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
RDMA/ucma: Correct option size check using optlen
[pandora-kernel.git]
/
drivers
/
hwmon
/
vt8231.c
diff --git
a/drivers/hwmon/vt8231.c
b/drivers/hwmon/vt8231.c
index
db3b2e8
..
6df67a9
100644
(file)
--- a/
drivers/hwmon/vt8231.c
+++ b/
drivers/hwmon/vt8231.c
@@
-139,7
+139,7
@@
static const u8 regtempmin[] = { 0x3a, 0x3e, 0x2c, 0x2e, 0x30, 0x32 };
*/
static inline u8 FAN_TO_REG(long rpm, int div)
{
- if (rpm
==
0)
+ if (rpm
<= 0 || rpm > 131072
0)
return 0;
return SENSORS_LIMIT(1310720 / (rpm * div), 1, 255);
}