summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-26 10:31:40 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-04 04:55:14 +0100
commitf69aac0006c303a98da9d2db04b71fd1c600d503 (patch)
tree4771957c3c6b661611cdc2548ee967011ace6b8b
parentshould_remove_suid(): inode->i_mode is umode_t (diff)
downloadlinux-f69aac0006c303a98da9d2db04b71fd1c600d503.tar.xz
linux-f69aac0006c303a98da9d2db04b71fd1c600d503.zip
switch may_mknod() to umode_t
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 85bb44f222c9..e275dc36d7c5 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2472,7 +2472,7 @@ int vfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)
return error;
}
-static int may_mknod(mode_t mode)
+static int may_mknod(umode_t mode)
{
switch (mode & S_IFMT) {
case S_IFREG: