projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
730e908
)
proc_fd_permission() is doesn't need to bail out in RCU mode
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 19 Jun 2011 00:35:23 +0000
(20:35 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 20 Jun 2011 14:44:50 +0000
(10:44 -0400)
nothing blocking except generic_permission()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/proc/base.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/proc/base.c
b/fs/proc/base.c
index 14def991d9dd1cc1ac18faa981f135f138ebb13b..8a84210ca080e43bc10500c4e21d85e4c224f2a1 100644
(file)
--- a/
fs/proc/base.c
+++ b/
fs/proc/base.c
@@
-2169,11
+2169,7
@@
static const struct file_operations proc_fd_operations = {
*/
static int proc_fd_permission(struct inode *inode, int mask, unsigned int flags)
{
- int rv;
-
- if (flags & IPERM_FLAG_RCU)
- return -ECHILD;
- rv = generic_permission(inode, mask, flags, NULL);
+ int rv = generic_permission(inode, mask, flags, NULL);
if (rv == 0)
return 0;
if (task_pid(current) == proc_pid(inode))