Message ID | 1380411144-9236-10-git-send-email-geyslan@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Please, disconsider this e-mail. Geyslan Gregório Bem hackingbits.com 2013/9/28 Geyslan G. Bem <geyslan@gmail.com>: > The *t variable in the fill_note_info function is only used if > siginfo->si_signo isn't 0. Moving "t" pointer to that inner scope. > > Tested. > > Signed-off-by: Geyslan G. Bem <geyslan@gmail.com> > --- > fs/binfmt_elf.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c > index 100edcc..d0ac15b 100644 > --- a/fs/binfmt_elf.c > +++ b/fs/binfmt_elf.c > @@ -1848,12 +1848,11 @@ static int fill_note_info(struct elfhdr *elf, int phdrs, > struct elf_note_info *info, > siginfo_t *siginfo, struct pt_regs *regs) > { > - struct list_head *t; > - > if (!elf_note_info_init(info)) > return 0; > > if (siginfo->si_signo) { > + struct list_head *t; > struct core_thread *ct; > struct elf_thread_status *ets; > > -- > 1.8.4 > ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 100edcc..d0ac15b 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -1848,12 +1848,11 @@ static int fill_note_info(struct elfhdr *elf, int phdrs, struct elf_note_info *info, siginfo_t *siginfo, struct pt_regs *regs) { - struct list_head *t; - if (!elf_note_info_init(info)) return 0; if (siginfo->si_signo) { + struct list_head *t; struct core_thread *ct; struct elf_thread_status *ets;
The *t variable in the fill_note_info function is only used if siginfo->si_signo isn't 0. Moving "t" pointer to that inner scope. Tested. Signed-off-by: Geyslan G. Bem <geyslan@gmail.com> --- fs/binfmt_elf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)