projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck...
[linux-2.6-microblaze.git]
/
drivers
/
hwmon
/
pc87360.c
diff --git
a/drivers/hwmon/pc87360.c
b/drivers/hwmon/pc87360.c
index
988181e
..
145f674
100644
(file)
--- a/
drivers/hwmon/pc87360.c
+++ b/
drivers/hwmon/pc87360.c
@@
-615,6
+615,9
@@
static ssize_t set_vrm(struct device *dev, struct device_attribute *attr,
if (err)
return err;
+ if (val > 255)
+ return -EINVAL;
+
data->vrm = val;
return count;
}