switch udf_ioctl() to inode_permission()
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 19 Jun 2011 15:49:08 +0000 (11:49 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 20 Jul 2011 05:43:07 +0000 (01:43 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/udf/file.c

index 2a346bb1d9f5f082338555fb50e754e19eb4aa67..d8ffa7cc661d2a28537bc8977c8902647b37b65e 100644 (file)
@@ -150,7 +150,7 @@ long udf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
        long old_block, new_block;
        int result = -EINVAL;
 
-       if (file_permission(filp, MAY_READ) != 0) {
+       if (inode_permission(inode, MAY_READ) != 0) {
                udf_debug("no permission to access inode %lu\n", inode->i_ino);
                result = -EPERM;
                goto out;