summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-03-15 22:01:25 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-19 15:12:13 +0100
commit21e3bde964e873bb5d3b1dfef68294b1437fe678 (patch)
treeae0732bbeeeb453587cf75cbce07b800e7076e95 /drivers/infiniband
parentsysfs: fix sysfs lockdep warning in ipmi code (diff)
downloadlinux-21e3bde964e873bb5d3b1dfef68294b1437fe678.tar.xz
linux-21e3bde964e873bb5d3b1dfef68294b1437fe678.zip
sysfs: fix sysfs lockdep warning in infiniband code
This fixes a sysfs lockdep warning in the infiniband code. Cc: Yinghai Lu <yinghai@kernel.org> Cc: Eric Biederman <ebiederm@xmission.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/sysfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/core/sysfs.c b/drivers/infiniband/core/sysfs.c
index 1558bb7fc74d..f901957abc8b 100644
--- a/drivers/infiniband/core/sysfs.c
+++ b/drivers/infiniband/core/sysfs.c
@@ -461,6 +461,7 @@ alloc_group_attrs(ssize_t (*show)(struct ib_port *,
element->attr.attr.mode = S_IRUGO;
element->attr.show = show;
element->index = i;
+ sysfs_attr_init(&element->attr.attr);
tab_attr[i] = &element->attr.attr;
}