diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-15 17:01:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-19 10:12:13 -0400 |
commit | 21e3bde964e873bb5d3b1dfef68294b1437fe678 (patch) | |
tree | ae0732bbeeeb453587cf75cbce07b800e7076e95 | |
parent | c7df670bf702d1c25ae22b4cd49deb05c1e55ecc (diff) |
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>
-rw-r--r-- | drivers/infiniband/core/sysfs.c | 1 |
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 *, | |||
461 | element->attr.attr.mode = S_IRUGO; | 461 | element->attr.attr.mode = S_IRUGO; |
462 | element->attr.show = show; | 462 | element->attr.show = show; |
463 | element->index = i; | 463 | element->index = i; |
464 | sysfs_attr_init(&element->attr.attr); | ||
464 | 465 | ||
465 | tab_attr[i] = &element->attr.attr; | 466 | tab_attr[i] = &element->attr.attr; |
466 | } | 467 | } |