Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1712c20d authored by Al Viro's avatar Al Viro
Browse files

bad_inode_permission() is safe from RCU mode



return -EIO; is *not* a blocking operation, thank you very much.
Nick, what the hell have you been smoking?

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 185bf873
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -231,9 +231,6 @@ static int bad_inode_readlink(struct dentry *dentry, char __user *buffer,

static int bad_inode_permission(struct inode *inode, int mask, unsigned int flags)
{
	if (flags & IPERM_FLAG_RCU)
		return -ECHILD;

	return -EIO;
}