aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p
diff options
context:
space:
mode:
Diffstat (limited to 'fs/9p')
-rw-r--r--fs/9p/vfs_inode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index b44c99979143..29367ee25cb8 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -1227,6 +1227,8 @@ v9fs_vfs_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t rdev)
1227 sprintf(name, "c %u %u", MAJOR(rdev), MINOR(rdev)); 1227 sprintf(name, "c %u %u", MAJOR(rdev), MINOR(rdev));
1228 else if (S_ISFIFO(mode)) 1228 else if (S_ISFIFO(mode))
1229 *name = 0; 1229 *name = 0;
1230 else if (S_ISSOCK(mode))
1231 *name = 0;
1230 else { 1232 else {
1231 __putname(name); 1233 __putname(name);
1232 return -EINVAL; 1234 return -EINVAL;