diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2009-03-29 16:34:56 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-03-31 23:00:28 -0400 |
commit | d9e66c7296f3a39f6ac847f11ada8ddf10a4f8b1 (patch) | |
tree | 99c4ff2a8a2ea9daaec22b37ad5deddf14a95c6a | |
parent | d0f35dde6e748fa1a3f5d8e23a200ad1d5a4a749 (diff) |
Don't crap into descriptor table in binfmt_som
Same story as in binfmt_elf, except that in binfmt_som we
actually forget to close the sucker.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/binfmt_som.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/binfmt_som.c b/fs/binfmt_som.c index 08644a61616e..eff74b9c9e77 100644 --- a/fs/binfmt_som.c +++ b/fs/binfmt_som.c | |||
@@ -188,7 +188,6 @@ out: | |||
188 | static int | 188 | static int |
189 | load_som_binary(struct linux_binprm * bprm, struct pt_regs * regs) | 189 | load_som_binary(struct linux_binprm * bprm, struct pt_regs * regs) |
190 | { | 190 | { |
191 | int som_exec_fileno; | ||
192 | int retval; | 191 | int retval; |
193 | unsigned int size; | 192 | unsigned int size; |
194 | unsigned long som_entry; | 193 | unsigned long som_entry; |
@@ -220,12 +219,6 @@ load_som_binary(struct linux_binprm * bprm, struct pt_regs * regs) | |||
220 | goto out_free; | 219 | goto out_free; |
221 | } | 220 | } |
222 | 221 | ||
223 | retval = get_unused_fd(); | ||
224 | if (retval < 0) | ||
225 | goto out_free; | ||
226 | get_file(bprm->file); | ||
227 | fd_install(som_exec_fileno = retval, bprm->file); | ||
228 | |||
229 | /* Flush all traces of the currently running executable */ | 222 | /* Flush all traces of the currently running executable */ |
230 | retval = flush_old_exec(bprm); | 223 | retval = flush_old_exec(bprm); |
231 | if (retval) | 224 | if (retval) |