diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-19 11:49:08 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 01:43:07 -0400 |
commit | 6f2861097467852f2271c2b40f9c3d1d01757048 (patch) | |
tree | e0f182d7e29812ce86d5f1876f613c55f30ba49e /fs/udf/file.c | |
parent | 4cf27141cbe0239f48ec6f0b37bad347d51d1785 (diff) |
switch udf_ioctl() to inode_permission()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/udf/file.c')
-rw-r--r-- | fs/udf/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/file.c b/fs/udf/file.c index 2a346bb1d9f5..d8ffa7cc661d 100644 --- a/fs/udf/file.c +++ b/fs/udf/file.c | |||
@@ -150,7 +150,7 @@ long udf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) | |||
150 | long old_block, new_block; | 150 | long old_block, new_block; |
151 | int result = -EINVAL; | 151 | int result = -EINVAL; |
152 | 152 | ||
153 | if (file_permission(filp, MAY_READ) != 0) { | 153 | if (inode_permission(inode, MAY_READ) != 0) { |
154 | udf_debug("no permission to access inode %lu\n", inode->i_ino); | 154 | udf_debug("no permission to access inode %lu\n", inode->i_ino); |
155 | result = -EPERM; | 155 | result = -EPERM; |
156 | goto out; | 156 | goto out; |