diff options
author | Jean Delvare <jdelvare@suse.de> | 2016-08-29 13:18:23 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-07 08:34:56 +0200 |
commit | 6814e92876b85752813b6180ef2fe2250fe0b6ae (patch) | |
tree | 91dd8e998e155b61c284c591d59532517f93afef | |
parent | 2c926ec5e0404b08c98d3b39ffad42cab192d8e5 (diff) | |
download | lwn-6814e92876b85752813b6180ef2fe2250fe0b6ae.tar.gz lwn-6814e92876b85752813b6180ef2fe2250fe0b6ae.zip |
hwmon: (it87) Add missing sysfs attribute group terminator
commit 3c3292634fc2de1ab97b6aa3222fee647f737adb upstream.
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>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/hwmon/it87.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c index 730d84028260..55bf479349ff 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 = { |