summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/binfmt_misc.c')
-rw-r--r--fs/binfmt_misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c
index fd8beb9657a2..1cc5377ba955 100644
--- a/fs/binfmt_misc.c
+++ b/fs/binfmt_misc.c
@@ -153,7 +153,7 @@ static int load_misc_binary(struct linux_binprm *bprm)
153 /* if the binary should be opened on behalf of the 153 /* if the binary should be opened on behalf of the
154 * interpreter than keep it open and assign descriptor 154 * interpreter than keep it open and assign descriptor
155 * to it */ 155 * to it */
156 fd_binary = get_unused_fd(); 156 fd_binary = get_unused_fd_flags(0);
157 if (fd_binary < 0) { 157 if (fd_binary < 0) {
158 retval = fd_binary; 158 retval = fd_binary;
159 goto _ret; 159 goto _ret;