lkml.org 
[lkml]   [2019]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -mm] elf: fixup compilation
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

fold into elf-use-list_for_each_entry.patch

fs/binfmt_elf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- a/fs/binfmt_elf.c
+++ b/fs/binfmt_elf.c
@@ -2110,8 +2110,8 @@ static int write_note_info(struct elf_note_info *info,

/* write out the thread status notes section */
list_for_each_entry(ets, &info->thread_list, list) {
- for (i = 0; i < tmp->num_notes; i++)
- if (!writenote(&tmp->notes[i], cprm))
+ for (i = 0; i < ets->num_notes; i++)
+ if (!writenote(&ets->notes[i], cprm))
return 0;
}

\
 
 \ /
  Last update: 2019-02-05 07:44    [W:0.067 / U:4.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site