Skip to content

Commit 21fd049

Browse files
maximlevitskytorvalds
authored andcommitted
memstick: init sysfs attributes
Otherwise lockdep complains. Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> Cc: Alex Dubov <oakad@yahoo.com> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent fec4dcc commit 21fd049

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/memstick/core/mspro_block.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,7 @@ static int mspro_block_read_attributes(struct memstick_dev *card)
10481048
snprintf(s_attr->name, sizeof(s_attr->name),
10491049
"attr_x%02x", attr->entries[cnt].id);
10501050

1051+
sysfs_attr_init(&s_attr->dev_attr.attr);
10511052
s_attr->dev_attr.attr.name = s_attr->name;
10521053
s_attr->dev_attr.attr.mode = S_IRUGO;
10531054
s_attr->dev_attr.show = mspro_block_attr_show(s_attr->id);

0 commit comments

Comments
 (0)