]> Git Repo - linux.git/commitdiff
hwmon: (it87) Add missing sysfs attribute group terminator
authorJean Delvare <[email protected]>
Mon, 29 Aug 2016 11:18:23 +0000 (13:18 +0200)
committerGuenter Roeck <[email protected]>
Mon, 29 Aug 2016 12:31:31 +0000 (05:31 -0700)
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 <[email protected]>
Cc: Martin Blumenstingl <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: [email protected]
Signed-off-by: Guenter Roeck <[email protected]>
drivers/hwmon/it87.c

index d0203a115effdd913d5fad1ed25775bad958f878..4667012b46b7fb35119fab2eaeb17b65e8afa980 100644 (file)
@@ -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 = {
This page took 0.076536 seconds and 4 git commands to generate.