projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'v3.17-rockchip-fixes1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[cascardo/linux.git]
/
drivers
/
hwmon
/
adm1026.c
diff --git
a/drivers/hwmon/adm1026.c
b/drivers/hwmon/adm1026.c
index
ca8430f
..
e67b9a5
100644
(file)
--- a/
drivers/hwmon/adm1026.c
+++ b/
drivers/hwmon/adm1026.c
@@
-1085,6
+1085,9
@@
static ssize_t store_vrm_reg(struct device *dev, struct device_attribute *attr,
if (err)
return err;
+ if (val > 255)
+ return -EINVAL;
+
data->vrm = val;
return count;
}