author | Venkateswararao Jujjuri
<jvrao@linux.vnet.ibm.com> 2010-05-22 17:20:30 UTC |
committer | Eric Van Hensbergen
<ericvh@gmail.com> 2010-05-22 17:34:12 UTC |
parent | 85e0df240e9376ff58eb1a50d9854f5f176dd297 |
fs/9p/vfs_inode.c | +2 | -0 |
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index b44c9997914..29367ee25cb 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;