From: Greg Kroah-Hartman Date: Mon, 15 Mar 2010 21:01:25 +0000 (-0700) Subject: sysfs: fix sysfs lockdep warning in infiniband code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=21e3bde964e873bb5d3b1dfef68294b1437fe678;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git sysfs: fix sysfs lockdep warning in infiniband code This fixes a sysfs lockdep warning in the infiniband code. Cc: Yinghai Lu Cc: Eric Biederman Signed-off-by: Greg Kroah-Hartman --- 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; }