[PATCH] proc_mkdir() should be used to create procfs directories
A bunch of create_proc_dir_entry() calls creating directories had crept in since the last sweep; converted to proc_mkdir(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
@ -2849,8 +2849,7 @@ sg_proc_init(void)
|
||||
struct proc_dir_entry *pdep;
|
||||
struct sg_proc_leaf * leaf;
|
||||
|
||||
sg_proc_sgp = create_proc_entry(sg_proc_sg_dirname,
|
||||
S_IFDIR | S_IRUGO | S_IXUGO, NULL);
|
||||
sg_proc_sgp = proc_mkdir(sg_proc_sg_dirname, NULL);
|
||||
if (!sg_proc_sgp)
|
||||
return 1;
|
||||
for (k = 0; k < num_leaves; ++k) {
|
||||
|
Reference in New Issue
Block a user