|
@@ -787,9 +787,6 @@ static int ubifs_mknod(struct inode *dir, struct dentry *dentry,
|
|
|
|
|
|
dbg_gen("dent '%pd' in dir ino %lu", dentry, dir->i_ino);
|
|
dbg_gen("dent '%pd' in dir ino %lu", dentry, dir->i_ino);
|
|
|
|
|
|
- if (!new_valid_dev(rdev))
|
|
|
|
- return -EINVAL;
|
|
|
|
-
|
|
|
|
if (S_ISBLK(mode) || S_ISCHR(mode)) {
|
|
if (S_ISBLK(mode) || S_ISCHR(mode)) {
|
|
dev = kmalloc(sizeof(union ubifs_dev_desc), GFP_NOFS);
|
|
dev = kmalloc(sizeof(union ubifs_dev_desc), GFP_NOFS);
|
|
if (!dev)
|
|
if (!dev)
|