projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d66952
)
hostfs_mknod(): don't bother with init_special_inode()
author
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 10 Feb 2021 05:01:06 +0000
(
00:01
-0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 13 Mar 2021 03:15:21 +0000
(22:15 -0500)
read_name() in the end of hostfs_mknod() will DTRT
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/hostfs/hostfs_kern.c
patch
|
blob
|
history
diff --git
a/fs/hostfs/hostfs_kern.c
b/fs/hostfs/hostfs_kern.c
index 29e407762626497e3e5b64349e554e1b0ec2df46..aed8c4f28ad37bc661c37fbc70c5ea4adf9aba3f 100644
(file)
--- a/
fs/hostfs/hostfs_kern.c
+++ b/
fs/hostfs/hostfs_kern.c
@@
-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;