Skip to content

Commit 3c32926

Browse files
jdelvaregroeck
authored andcommitted
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: 5292971 ("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]>
1 parent fa8410b commit 3c32926

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hwmon/it87.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,6 +2015,7 @@ static struct attribute *it87_attributes_in[] = {
20152015
&sensor_dev_attr_in10_input.dev_attr.attr, /* 41 */
20162016
&sensor_dev_attr_in11_input.dev_attr.attr, /* 41 */
20172017
&sensor_dev_attr_in12_input.dev_attr.attr, /* 41 */
2018+
NULL
20182019
};
20192020

20202021
static const struct attribute_group it87_group_in = {

0 commit comments

Comments
 (0)