diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-19 02:11:43 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-20 16:44:19 +0200 |
commit | 6b419951f1e44c8a46fccfc6551eca9a9980acd6 (patch) | |
tree | 2961649a0e2f31a43218d1f677c177fab244e12a /fs/coda/pioctl.c | |
parent | cifs_permission() doesn't need to bail out in RCU mode (diff) | |
download | linux-6b419951f1e44c8a46fccfc6551eca9a9980acd6.tar.xz linux-6b419951f1e44c8a46fccfc6551eca9a9980acd6.zip |
coda_ioctl_permission() is safe in RCU mode
return (mask & MAY_EXEC) ? -EACCES : 0; is non-blocking...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/coda/pioctl.c')
-rw-r--r-- | fs/coda/pioctl.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/coda/pioctl.c b/fs/coda/pioctl.c index 6cbb3afb36dc..cb140ef293e4 100644 --- a/fs/coda/pioctl.c +++ b/fs/coda/pioctl.c @@ -43,8 +43,6 @@ const struct file_operations coda_ioctl_operations = { /* the coda pioctl inode ops */ static int coda_ioctl_permission(struct inode *inode, int mask, unsigned int flags) { - if (flags & IPERM_FLAG_RCU) - return -ECHILD; return (mask & MAY_EXEC) ? -EACCES : 0; } |