diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 5f77e76b4f97..122fadb972fc 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -466,11 +466,9 @@ void fastcall put_files_struct(struct files_struct *files) | |||
466 | * you can free files immediately. | 466 | * you can free files immediately. |
467 | */ | 467 | */ |
468 | fdt = files_fdtable(files); | 468 | fdt = files_fdtable(files); |
469 | if (fdt == &files->fdtab) | 469 | if (fdt != &files->fdtab) |
470 | fdt->free_files = files; | ||
471 | else | ||
472 | kmem_cache_free(files_cachep, files); | 470 | kmem_cache_free(files_cachep, files); |
473 | free_fdtable(fdt); | 471 | call_rcu(&fdt->rcu, free_fdtable_rcu); |
474 | } | 472 | } |
475 | } | 473 | } |
476 | 474 | ||