Unverified Commit 542a4065 authored by Christian Brauner's avatar Christian Brauner
Browse files
parent fbe58faa
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -3103,19 +3103,7 @@ static struct file *vfs_open_tree(int dfd, const char __user *filename, unsigned

SYSCALL_DEFINE3(open_tree, int, dfd, const char __user *, filename, unsigned, flags)
{
	int fd;
	struct file *file __free(fput) = NULL;

	file = vfs_open_tree(dfd, filename, flags);
	if (IS_ERR(file))
		return PTR_ERR(file);

	fd = get_unused_fd_flags(flags & O_CLOEXEC);
	if (fd < 0)
		return fd;

	fd_install(fd, no_free_ptr(file));
	return fd;
	return FD_ADD(flags, vfs_open_tree(dfd, filename, flags));
}

/*