]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Initialize sysfs attributes before sysfs create group
authorMark Bloch <markb@mellanox.com>
Sat, 4 Jun 2016 12:15:24 +0000 (15:15 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 7 Jun 2016 13:50:54 +0000 (09:50 -0400)
commit7787aa9442bc9c5144436ec29c40048136f9a0a5
tree83dfb6e20c1729f356dffa48d41e1a064a6314e8
parent0edff0f83d9f6997a189f9c768a6c6e38b1fa269
IB/core: Initialize sysfs attributes before sysfs create group

For dynamically allocated sysfs attributes there is a need to call
sysfs_attr_init in order to comply with lockdep, not calling it
will result in error complaining key is not in .data section.

Fixes: 7ea198ec30a4 ("IB/core: Make device counter infrastructure dynamic")
Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/sysfs.c