commit | 6f2861097467852f2271c2b40f9c3d1d01757048 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sun Jun 19 11:49:08 2011 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Wed Jul 20 01:43:07 2011 -0400 |
tree | e0f182d7e29812ce86d5f1876f613c55f30ba49e | |
parent | 4cf27141cbe0239f48ec6f0b37bad347d51d1785 [diff] [blame] |
switch udf_ioctl() to inode_permission() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/udf/file.c b/fs/udf/file.c index 2a346bb..d8ffa7c 100644 --- a/fs/udf/file.c +++ b/fs/udf/file.c
@@ -150,7 +150,7 @@ 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;