Commit d9e66c72 authored by Al Viro's avatar Al Viro

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent d0f35dde
...@@ -188,7 +188,6 @@ static int map_som_binary(struct file *file, ...@@ -188,7 +188,6 @@ static int map_som_binary(struct file *file,
static int static int
load_som_binary(struct linux_binprm * bprm, struct pt_regs * regs) load_som_binary(struct linux_binprm * bprm, struct pt_regs * regs)
{ {
int som_exec_fileno;
int retval; int retval;
unsigned int size; unsigned int size;
unsigned long som_entry; unsigned long som_entry;
...@@ -220,12 +219,6 @@ load_som_binary(struct linux_binprm * bprm, struct pt_regs * regs) ...@@ -220,12 +219,6 @@ load_som_binary(struct linux_binprm * bprm, struct pt_regs * regs)
goto out_free; goto out_free;
} }
retval = get_unused_fd();
if (retval < 0)
goto out_free;
get_file(bprm->file);
fd_install(som_exec_fileno = retval, bprm->file);
/* Flush all traces of the currently running executable */ /* Flush all traces of the currently running executable */
retval = flush_old_exec(bprm); retval = flush_old_exec(bprm);
if (retval) if (retval)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment