VisionFive2 Linux kernel

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

More than 9999 Commits   32 Branches   54 Tags
author: Yann Droneaud <ydroneaud@opteya.com> 2014-12-10 15:45:44 -0800 committer: Linus Torvalds <torvalds@linux-foundation.org> 2014-12-10 17:41:10 -0800 commit: 8d10a035829cacbd84bf35610870c35e566d1242 parent: c6cb898b54ce1705f9edfa4a13be57ad3cced4a1
Commit Summary:
fs/file.c: replace get_unused_fd() with get_unused_fd_flags(0)
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/file.c b/fs/file.c
index ab3eb6a88239..ee738ea028fa 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -869,7 +869,7 @@ SYSCALL_DEFINE1(dup, unsigned int, fildes)
 	struct file *file = fget_raw(fildes);
 
 	if (file) {
-		ret = get_unused_fd();
+		ret = get_unused_fd_flags(0);
 		if (ret >= 0)
 			fd_install(ret, file);
 		else