aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 dc67f83d0dae..4cbfb714c6e4 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -1244,6 +1244,8 @@ v9fs_vfs_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t rdev)
1244 return -EINVAL; 1244 return -EINVAL;
1245 1245
1246 name = __getname(); 1246 name = __getname();
1247 if (!name)
1248 return -ENOMEM;
1247 /* build extension */ 1249 /* build extension */
1248 if (S_ISBLK(mode)) 1250 if (S_ISBLK(mode))
1249 sprintf(name, "b %u %u", MAJOR(rdev), MINOR(rdev)); 1251 sprintf(name, "b %u %u", MAJOR(rdev), MINOR(rdev));