diff options
-rw-r--r-- | fs/binfmt_elf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 14ea630a857c..be5869d34999 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c | |||
@@ -544,7 +544,7 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs) | |||
544 | unsigned long reloc_func_desc = 0; | 544 | unsigned long reloc_func_desc = 0; |
545 | char passed_fileno[6]; | 545 | char passed_fileno[6]; |
546 | struct files_struct *files; | 546 | struct files_struct *files; |
547 | int have_pt_gnu_stack, executable_stack = EXSTACK_DEFAULT; | 547 | int executable_stack = EXSTACK_DEFAULT; |
548 | unsigned long def_flags = 0; | 548 | unsigned long def_flags = 0; |
549 | struct { | 549 | struct { |
550 | struct elfhdr elf_ex; | 550 | struct elfhdr elf_ex; |
@@ -707,7 +707,6 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs) | |||
707 | executable_stack = EXSTACK_DISABLE_X; | 707 | executable_stack = EXSTACK_DISABLE_X; |
708 | break; | 708 | break; |
709 | } | 709 | } |
710 | have_pt_gnu_stack = (i < loc->elf_ex.e_phnum); | ||
711 | 710 | ||
712 | /* Some simple consistency checks for the interpreter */ | 711 | /* Some simple consistency checks for the interpreter */ |
713 | if (elf_interpreter) { | 712 | if (elf_interpreter) { |