summaryrefslogtreecommitdiffstats
path: root/fs/hpfs/namei.c
diff options
context:
space:
mode:
authorAl Viro2011-06-21 01:16:29 +0200
committerAl Viro2011-07-20 07:43:22 +0200
commit2830ba7f34ebb27c4e5b8b6ef408cd6d74860890 (patch)
treebbcebc14bffd000f1dfcbf37e64f56d2f49581ac /fs/hpfs/namei.c
parent->permission() sanitizing: don't pass flags to ->check_acl() (diff)
downloadkernel-qcow2-linux-2830ba7f34ebb27c4e5b8b6ef408cd6d74860890.tar.gz
kernel-qcow2-linux-2830ba7f34ebb27c4e5b8b6ef408cd6d74860890.tar.xz
kernel-qcow2-linux-2830ba7f34ebb27c4e5b8b6ef408cd6d74860890.zip
->permission() sanitizing: don't pass flags to generic_permission()
redundant; all callers get it duplicated in mask & MAY_NOT_BLOCK and none of them removes that bit. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/hpfs/namei.c')
-rw-r--r--fs/hpfs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hpfs/namei.c b/fs/hpfs/namei.c
index bd2ce7dd8df3..2df69e2f07cf 100644
--- a/fs/hpfs/namei.c
+++ b/fs/hpfs/namei.c
@@ -398,7 +398,7 @@ again:
hpfs_unlock(dir->i_sb);
return -ENOSPC;
}
- if (generic_permission(inode, MAY_WRITE, 0) ||
+ if (generic_permission(inode, MAY_WRITE) ||
!S_ISREG(inode->i_mode) ||
get_write_access(inode)) {
d_rehash(dentry);