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
/
ds620.c
diff --git
a/drivers/hwmon/ds620.c
b/drivers/hwmon/ds620.c
index
225ae4f
..
06da77b
100644
(file)
--- a/
drivers/hwmon/ds620.c
+++ b/
drivers/hwmon/ds620.c
@@
-166,7
+166,7
@@
static ssize_t set_temp(struct device *dev, struct device_attribute *da,
if (res)
return res;
- val = (
val
* 10 / 625) * 8;
+ val = (
clamp_val(val, -128000, 128000)
* 10 / 625) * 8;
mutex_lock(&data->update_lock);
data->temp[attr->index] = val;