aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/exit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index bc71fdfcd8a7..14f17033f563 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -430,8 +430,10 @@ static void close_files(struct files_struct * files)
430 while (set) { 430 while (set) {
431 if (set & 1) { 431 if (set & 1) {
432 struct file * file = xchg(&fdt->fd[i], NULL); 432 struct file * file = xchg(&fdt->fd[i], NULL);
433 if (file) 433 if (file) {
434 filp_close(file, files); 434 filp_close(file, files);
435 cond_resched();
436 }
435 } 437 }
436 i++; 438 i++;
437 set >>= 1; 439 set >>= 1;