mirror of
https://github.com/S3NEO/android_kernel_samsung_msm8226.git
synced 2024-11-07 03:47:13 +00:00
proc_fd_permission() is doesn't need to bail out in RCU mode
nothing blocking except generic_permission() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
730e908f35
commit
cf12791116
1 changed files with 1 additions and 5 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue