linux-hwmon.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] hwmon: (it87) Add missing sysfs attribute group terminator
@ 2016-08-29 11:18 Jean Delvare
  2016-08-29 11:33 ` [PATCH 2/2] hwmon: (it87) Drop useless comments Jean Delvare
  2016-08-29 12:30 ` [PATCH 1/2] hwmon: (it87) Add missing sysfs attribute group terminator Guenter Roeck
  0 siblings, 2 replies; 5+ messages in thread
From: Jean Delvare @ 2016-08-29 11:18 UTC (permalink / raw)
  To: linux-hwmon; +Cc: Alexander Kapshuk, Martin Blumenstingl, Guenter Roeck

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
---
 drivers/hwmon/it87.c |    1 +
 1 file changed, 1 insertion(+)

--- linux-4.7.orig/drivers/hwmon/it87.c	2016-07-04 08:01:00.000000000 +0200
+++ linux-4.7/drivers/hwmon/it87.c	2016-08-29 12:04:52.926911625 +0200
@@ -2015,6 +2015,7 @@ static struct attribute *it87_attributes
 	&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 = {


-- 
Jean Delvare
SUSE L3 Support

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-08-29 14:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-29 11:18 [PATCH 1/2] hwmon: (it87) Add missing sysfs attribute group terminator Jean Delvare
2016-08-29 11:33 ` [PATCH 2/2] hwmon: (it87) Drop useless comments Jean Delvare
2016-08-29 12:34   ` Guenter Roeck
2016-08-29 12:30 ` [PATCH 1/2] hwmon: (it87) Add missing sysfs attribute group terminator Guenter Roeck
2016-08-29 14:42   ` Alexander Kapshuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).