diff options
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index 42ccb97cc260..94fd0fa2d647 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -2411,7 +2411,7 @@ SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, int, mode, | |||
2411 | goto out_drop_write; | 2411 | goto out_drop_write; |
2412 | switch (mode & S_IFMT) { | 2412 | switch (mode & S_IFMT) { |
2413 | case 0: case S_IFREG: | 2413 | case 0: case S_IFREG: |
2414 | error = vfs_create(nd.path.dentry->d_inode,dentry,mode,&nd); | 2414 | error = vfs_create(nd.path.dentry->d_inode,dentry,mode,NULL); |
2415 | break; | 2415 | break; |
2416 | case S_IFCHR: case S_IFBLK: | 2416 | case S_IFCHR: case S_IFBLK: |
2417 | error = vfs_mknod(nd.path.dentry->d_inode,dentry,mode, | 2417 | error = vfs_mknod(nd.path.dentry->d_inode,dentry,mode, |