summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2016-08-29 13:18:23 +0200
committerGuenter Roeck <linux@roeck-us.net>2016-08-29 05:31:31 -0700
commit3c3292634fc2de1ab97b6aa3222fee647f737adb (patch)
tree21418a867d8169c4acd77739f803cc13706dfb50 /drivers/hwmon
parentfa8410b355251fd30341662a40ac6b22d3e38468 (diff)
downloadop-kernel-dev-3c3292634fc2de1ab97b6aa3222fee647f737adb.zip
op-kernel-dev-3c3292634fc2de1ab97b6aa3222fee647f737adb.tar.gz
hwmon: (it87) Add missing sysfs attribute group terminator
Attribute array it87_attributes_in lacks its NULL terminator, causing random behavior when operating on the attribute group. Fixes: 52929715634a ("hwmon: (it87) Use is_visible for voltage sensors") Signed-off-by: Jean Delvare <jdelvare@suse.de> Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Cc: Guenter Roeck <linux@roeck-us.net> Cc: stable@vger.kernel.org Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/it87.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c
index d0203a1..4667012 100644
--- a/drivers/hwmon/it87.c
+++ b/drivers/hwmon/it87.c
@@ -2015,6 +2015,7 @@ static struct attribute *it87_attributes_in[] = {
&sensor_dev_attr_in10_input.dev_attr.attr, /* 41 */
&sensor_dev_attr_in11_input.dev_attr.attr, /* 41 */
&sensor_dev_attr_in12_input.dev_attr.attr, /* 41 */
+ NULL
};
static const struct attribute_group it87_group_in = {
OpenPOWER on IntegriCloud