diff options
author | Jean Delvare <khali@linux-fr.org> | 2008-02-10 13:01:15 -0500 |
---|---|---|
committer | Mark M. Hoffman <mhoffman@lightlink.com> | 2008-02-17 09:27:19 -0500 |
commit | 1d5f2c16c6125ae6da1435ac5a190ae08429902a (patch) | |
tree | 92945ab52c4e570e6f6d2b51b37ed62f90316dde | |
parent | af865765a9ee3e3510f0fe82a4f1308d2820b7f6 (diff) |
hwmon: (adm1026) Properly terminate sysfs groups
The missing NULL at the end of two sysfs file groups causes a kernel
crash when calling sysfs_create_group().
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
-rw-r--r-- | drivers/hwmon/adm1026.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hwmon/adm1026.c b/drivers/hwmon/adm1026.c index 8002f68240c4..b3e6b06caf61 100644 --- a/drivers/hwmon/adm1026.c +++ b/drivers/hwmon/adm1026.c | |||
@@ -1624,6 +1624,7 @@ static struct attribute *adm1026_attributes_temp3[] = { | |||
1624 | &dev_attr_temp3_crit_enable.attr, | 1624 | &dev_attr_temp3_crit_enable.attr, |
1625 | &dev_attr_temp3_auto_point1_pwm.attr, | 1625 | &dev_attr_temp3_auto_point1_pwm.attr, |
1626 | &dev_attr_temp3_auto_point2_pwm.attr, | 1626 | &dev_attr_temp3_auto_point2_pwm.attr, |
1627 | NULL | ||
1627 | }; | 1628 | }; |
1628 | 1629 | ||
1629 | static const struct attribute_group adm1026_group_temp3 = { | 1630 | static const struct attribute_group adm1026_group_temp3 = { |
@@ -1639,6 +1640,7 @@ static struct attribute *adm1026_attributes_in8_9[] = { | |||
1639 | &sensor_dev_attr_in9_max.dev_attr.attr, | 1640 | &sensor_dev_attr_in9_max.dev_attr.attr, |
1640 | &sensor_dev_attr_in9_min.dev_attr.attr, | 1641 | &sensor_dev_attr_in9_min.dev_attr.attr, |
1641 | &sensor_dev_attr_in9_alarm.dev_attr.attr, | 1642 | &sensor_dev_attr_in9_alarm.dev_attr.attr, |
1643 | NULL | ||
1642 | }; | 1644 | }; |
1643 | 1645 | ||
1644 | static const struct attribute_group adm1026_group_in8_9 = { | 1646 | static const struct attribute_group adm1026_group_in8_9 = { |