mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
do_tmpfile(): don't mess with finish_open()
use vfs_open() instead Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
5c8fe583cc
commit
1e8f44f159
|
|
@ -3325,10 +3325,8 @@ static int do_tmpfile(struct nameidata *nd, unsigned flags,
|
|||
audit_inode(nd->name, child, 0);
|
||||
/* Don't check for other permissions, the inode was just created */
|
||||
error = may_open(&path, 0, op->open_flag);
|
||||
if (error)
|
||||
goto out2;
|
||||
file->f_path.mnt = path.mnt;
|
||||
error = finish_open(file, child, NULL);
|
||||
if (!error)
|
||||
error = vfs_open(&path, file);
|
||||
out2:
|
||||
mnt_drop_write(path.mnt);
|
||||
out:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user