mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 01:51:39 +00:00
hostfs_mknod(): don't bother with init_special_inode()
read_name() in the end of hostfs_mknod() will DTRT Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
4d66952a20
commit
a612c07dd2
1 changed files with 0 additions and 1 deletions
|
@ -712,7 +712,6 @@ static int hostfs_mknod(struct user_namespace *mnt_userns, struct inode *dir,
|
||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
goto out_put;
|
goto out_put;
|
||||||
|
|
||||||
init_special_inode(inode, mode, dev);
|
|
||||||
err = do_mknod(name, mode, MAJOR(dev), MINOR(dev));
|
err = do_mknod(name, mode, MAJOR(dev), MINOR(dev));
|
||||||
if (err)
|
if (err)
|
||||||
goto out_free;
|
goto out_free;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue