From f36547c84787164cf66ce9d783c0a05ffa00a702 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sun, 29 Mar 2009 16:34:56 -0400 Subject: [PATCH] --- yaml --- r: 139862 b: refs/heads/master c: d9e66c7296f3a39f6ac847f11ada8ddf10a4f8b1 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/binfmt_som.c | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/[refs] b/[refs] index 17229d9d3388..fd98339a156c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d0f35dde6e748fa1a3f5d8e23a200ad1d5a4a749 +refs/heads/master: d9e66c7296f3a39f6ac847f11ada8ddf10a4f8b1 diff --git a/trunk/fs/binfmt_som.c b/trunk/fs/binfmt_som.c index 08644a61616e..eff74b9c9e77 100644 --- a/trunk/fs/binfmt_som.c +++ b/trunk/fs/binfmt_som.c @@ -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; @@ -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)