aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
2472 return error; 2472 return error;
2473} 2473}
2474 2474
2475static int may_mknod(mode_t mode) 2475static int may_mknod(umode_t mode)
2476{ 2476{
2477 switch (mode & S_IFMT) { 2477 switch (mode & S_IFMT) {
2478 case S_IFREG: 2478 case S_IFREG: