diff options
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r-- | fs/binfmt_elf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index dfd8cfb7fb5d..bb43da5cde5c 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c | |||
@@ -1038,10 +1038,8 @@ out_free_interp: | |||
1038 | out_free_file: | 1038 | out_free_file: |
1039 | sys_close(elf_exec_fileno); | 1039 | sys_close(elf_exec_fileno); |
1040 | out_free_fh: | 1040 | out_free_fh: |
1041 | if (files) { | 1041 | if (files) |
1042 | put_files_struct(current->files); | 1042 | reset_files_struct(current, files); |
1043 | current->files = files; | ||
1044 | } | ||
1045 | out_free_ph: | 1043 | out_free_ph: |
1046 | kfree(elf_phdata); | 1044 | kfree(elf_phdata); |
1047 | goto out; | 1045 | goto out; |