Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

do_tmpfile(): don't mess with finish_open()

use vfs_open() instead

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 1e8f44f1 5c8fe583

+2 -4
+2 -4
fs/namei.c
··· 3325 3325 audit_inode(nd->name, child, 0); 3326 3326 /* Don't check for other permissions, the inode was just created */ 3327 3327 error = may_open(&path, 0, op->open_flag); 3328 - if (error) 3329 - goto out2; 3330 - file->f_path.mnt = path.mnt; 3331 - error = finish_open(file, child, NULL); 3328 + if (!error) 3329 + error = vfs_open(&path, file); 3332 3330 out2: 3333 3331 mnt_drop_write(path.mnt); 3334 3332 out: