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-Tag: v2.6.34-rc2~7^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21e3bde964e873bb5d3b1dfef68294b1437fe678;p=profile%2Fcommon%2Fkernel-common.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 1558bb7..f901957a 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; }