Commit a612c07d authored by Al Viro's avatar Al Viro

hostfs_mknod(): don't bother with init_special_inode()

read_name() in the end of hostfs_mknod() will DTRT
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 4d66952a
......@@ -712,7 +712,6 @@ static int hostfs_mknod(struct user_namespace *mnt_userns, struct inode *dir,
if (name == NULL)
goto out_put;
init_special_inode(inode, mode, dev);
err = do_mknod(name, mode, MAJOR(dev), MINOR(dev));
if (err)
goto out_free;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment