Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa66d7bb authored by Al Viro's avatar Al Viro
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent f56e2947
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -201,8 +201,7 @@ void dgrp_register_proc(void)
	/*
	/*
	 *	Register /proc/dgrp
	 *	Register /proc/dgrp
	 */
	 */
	dgrp_proc_dir_entry = proc_create("dgrp", S_IFDIR, NULL,
	dgrp_proc_dir_entry = proc_mkdir("dgrp", NULL);
					  &dgrp_proc_file_ops);
	register_proc_table(dgrp_table, dgrp_proc_dir_entry);
	register_proc_table(dgrp_table, dgrp_proc_dir_entry);
}
}