VisionFive2 Linux kernel

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

More than 9999 Commits   34 Branches   58 Tags
author: Linus Torvalds <torvalds@linux-foundation.org> 2024-01-24 13:12:20 -0800 committer: Linus Torvalds <torvalds@linux-foundation.org> 2024-01-24 13:12:20 -0800 commit: 3eab830189d94f0f80f34cbff609b5bb54002679 parent: 443b349019f2d9461b23213a4308f9cf72e41c5e
Commit Summary:
uselib: remove use of __FMODE_EXEC
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/exec.c b/fs/exec.c
index 8cdd5b2dd09c..1a097c1c2f77 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -128,7 +128,7 @@ SYSCALL_DEFINE1(uselib, const char __user *, library)
 	struct filename *tmp = getname(library);
 	int error = PTR_ERR(tmp);
 	static const struct open_flags uselib_flags = {
-		.open_flag = O_LARGEFILE | O_RDONLY | __FMODE_EXEC,
+		.open_flag = O_LARGEFILE | O_RDONLY,
 		.acc_mode = MAY_READ | MAY_EXEC,
 		.intent = LOOKUP_OPEN,
 		.lookup_flags = LOOKUP_FOLLOW,