mirror of
https://github.com/torvalds/linux.git
synced 2026-05-14 17:32:42 +02: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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user