aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 22cc38d9e79f..cfd5e3047bd8 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -1026,10 +1026,10 @@ static void flush_old_files(struct files_struct * files)
1026 fdt = files_fdtable(files); 1026 fdt = files_fdtable(files);
1027 if (i >= fdt->max_fds) 1027 if (i >= fdt->max_fds)
1028 break; 1028 break;
1029 set = fdt->close_on_exec->fds_bits[j]; 1029 set = fdt->close_on_exec[j];
1030 if (!set) 1030 if (!set)
1031 continue; 1031 continue;
1032 fdt->close_on_exec->fds_bits[j] = 0; 1032 fdt->close_on_exec[j] = 0;
1033 spin_unlock(&files->file_lock); 1033 spin_unlock(&files->file_lock);
1034 for ( ; set ; i++,set >>= 1) { 1034 for ( ; set ; i++,set >>= 1) {
1035 if (set & 1) { 1035 if (set & 1) {