提交 aa66d7bb 编写于 作者: A Al Viro

dgrp procfs fixes, part 1

proc_create() has shat upon fops argument when mode is S_IFDIR.
Good thing, too, since fops passed to it is completely useless
for any directory.  Just use proc_mkdir(), damnit.
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 f56e2947
......@@ -201,8 +201,7 @@ void dgrp_register_proc(void)
/*
* Register /proc/dgrp
*/
dgrp_proc_dir_entry = proc_create("dgrp", S_IFDIR, NULL,
&dgrp_proc_file_ops);
dgrp_proc_dir_entry = proc_mkdir("dgrp", NULL);
register_proc_table(dgrp_table, dgrp_proc_dir_entry);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册