Skip to content
Snippets Groups Projects
Commit 6b419951 authored by Al Viro's avatar Al Viro
Browse files

coda_ioctl_permission() is safe in RCU mode


return (mask & MAY_EXEC) ? -EACCES : 0; is non-blocking...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent ec12781f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment