提交 878c68c6 编写于 作者: A Al Viro

dgrp procfs fixes, part 2

All table entries either have non-NULL ->proc_file_fops or
non-NULL child.
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 aa66d7bb
...@@ -269,10 +269,7 @@ static void register_proc_table(struct dgrp_proc_entry *table, ...@@ -269,10 +269,7 @@ static void register_proc_table(struct dgrp_proc_entry *table,
de->data = (void *) table; de->data = (void *) table;
if (!table->child) { if (!table->child) {
de->proc_iops = &proc_inode_ops; de->proc_iops = &proc_inode_ops;
if (table->proc_file_ops) de->proc_fops = table->proc_file_ops;
de->proc_fops = table->proc_file_ops;
else
de->proc_fops = &dgrp_proc_file_ops;
} }
} }
table->de = de; table->de = de;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册