diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index b44c99979143f30f501b85f99ec39ddfd59ea4f8..29367ee25cb82206c3a7ed7a26aea10c2254a8a2 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) sprintf(name, "c %u %u", MAJOR(rdev), MINOR(rdev)); else if (S_ISFIFO(mode)) *name = 0; + else if (S_ISSOCK(mode)) + *name = 0; else { __putname(name); return -EINVAL;