projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f56e294
)
dgrp procfs fixes, part 1
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 30 Mar 2013 00:39:17 +0000
(20:39 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 9 Apr 2013 18:13:07 +0000
(14:13 -0400)
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: Al Viro <viro@zeniv.linux.org.uk>
drivers/staging/dgrp/dgrp_specproc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/dgrp/dgrp_specproc.c
b/drivers/staging/dgrp/dgrp_specproc.c
index dddf8a2e396b275c04e647810e3f4ec43d52562f..556cb3124da6d783c3ba239c59bb175376512f9b 100644
(file)
--- a/
drivers/staging/dgrp/dgrp_specproc.c
+++ b/
drivers/staging/dgrp/dgrp_specproc.c
@@
-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);
}