VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Eric W. Biederman <ebiederm@xmission.com> 2020-11-20 17:14:25 -0600 committer: Eric W. Biederman <ebiederm@xmission.com> 2020-12-10 12:39:59 -0600 commit: 120ce2b0cd52abe73e8b16c23461eb14df5a87d8 parent: bebf684bf330915e6c96313ad7db89a5480fc9c2
Commit Summary:
file: Factor files_lookup_fd_locked out of fcheck_files
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/file.c b/fs/file.c
index b5591efb87f5..9d0e91168be1 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -1098,7 +1098,7 @@ static int ksys_dup3(unsigned int oldfd, unsigned int newfd, int flags)
 
 	spin_lock(&files->file_lock);
 	err = expand_files(files, newfd);
-	file = fcheck(oldfd);
+	file = files_lookup_fd_locked(files, oldfd);
 	if (unlikely(!file))
 		goto Ebadf;
 	if (unlikely(err < 0)) {