Merge branch 'liblockdep-fixes-3.19' of git://git.kernel.org/pub/scm/linux/kernel...
[cascardo/linux.git] / drivers / hwmon / pc87360.c
index 988181e..d50fbf9 100644 (file)
@@ -244,7 +244,6 @@ static struct pc87360_data *pc87360_update_device(struct device *dev);
 
 static struct platform_driver pc87360_driver = {
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "pc87360",
        },
        .probe          = pc87360_probe,
@@ -615,6 +614,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;
 }