X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fbinfmt_elf.c;h=d48ff5f370f4e5122c3402ed44889564366ad317;hb=6924d1ab8b7bbe5ab416713f5701b3316b2df85b;hp=0fa95b198e6e9c89f5f4166b45666bdf6171c730;hpb=c1e554aeea12d2dab5183e011c27dee6142dc927;p=linux-2.6 diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 0fa95b198e..d48ff5f370 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -548,7 +547,6 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs) struct { struct elfhdr elf_ex; struct elfhdr interp_elf_ex; - struct exec interp_ex; } *loc; loc = kmalloc(sizeof(*loc), GFP_KERNEL); @@ -680,7 +678,6 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs) } /* Get the exec headers */ - loc->interp_ex = *((struct exec *)bprm->buf); loc->interp_elf_ex = *((struct elfhdr *)bprm->buf); break; }