Skip to content

Commit

Permalink
Don't crap into descriptor table in binfmt_som
Browse files Browse the repository at this point in the history
Same story as in binfmt_elf, except that in binfmt_som we
actually forget to close the sucker.

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Apr 1, 2009
1 parent d0f35dd commit d9e66c7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions fs/binfmt_som.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ static int map_som_binary(struct file *file,
static int
load_som_binary(struct linux_binprm * bprm, struct pt_regs * regs)
{
int som_exec_fileno;
int retval;
unsigned int size;
unsigned long som_entry;
Expand Down Expand Up @@ -220,12 +219,6 @@ load_som_binary(struct linux_binprm * bprm, struct pt_regs * regs)
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 */
retval = flush_old_exec(bprm);
if (retval)
Expand Down

0 comments on commit d9e66c7

Please sign in to comment.