This is a note to let you know that I've just added the patch titled
hwmon: (ibmaem) Initialize sysfs attributes
to the 2.6.39-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
hwmon-ibmaem-initialize-sysfs-attributes.patch
and it can be found in the queue-2.6.39 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From 3cdb2052a6e365ad56202874e6a8a05a2bb336fc Mon Sep 17 00:00:00 2001
From: Guenter Roeck <[email protected]>
Date: Tue, 24 May 2011 12:33:26 -0700
Subject: hwmon: (ibmaem) Initialize sysfs attributes
From: Guenter Roeck <[email protected]>
commit 3cdb2052a6e365ad56202874e6a8a05a2bb336fc upstream.
Initialize dynamically allocated sysfs attributes before device_create_file()
call to suppress lockdep_init_map() warning if lockdep debugging is enabled.
Signed-off-by: Guenter Roeck <[email protected]>
Acked-by: Jean Delvare <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
drivers/hwmon/ibmaem.c | 2 ++
1 file changed, 2 insertions(+)
--- a/drivers/hwmon/ibmaem.c
+++ b/drivers/hwmon/ibmaem.c
@@ -947,6 +947,7 @@ static int aem_register_sensors(struct a
/* Set up read-only sensors */
while (ro->label) {
+ sysfs_attr_init(&sensors->dev_attr.attr);
sensors->dev_attr.attr.name = ro->label;
sensors->dev_attr.attr.mode = S_IRUGO;
sensors->dev_attr.show = ro->show;
@@ -963,6 +964,7 @@ static int aem_register_sensors(struct a
/* Set up read-write sensors */
while (rw->label) {
+ sysfs_attr_init(&sensors->dev_attr.attr);
sensors->dev_attr.attr.name = rw->label;
sensors->dev_attr.attr.mode = S_IRUGO | S_IWUSR;
sensors->dev_attr.show = rw->show;
Patches currently in stable-queue which might be from
[email protected] are
queue-2.6.39/hwmon-ibmaem-initialize-sysfs-attributes.patch
queue-2.6.39/hwmon-s3c-initialize-sysfs-attributes.patch
queue-2.6.39/hwmon-ibmpex-initialize-sysfs-attributes.patch
_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable