diff options
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/vpe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c index 9067b651c7a2..544ea21bfef9 100644 --- a/arch/mips/kernel/vpe.c +++ b/arch/mips/kernel/vpe.c | |||
@@ -205,11 +205,11 @@ static void layout_sections(struct module *mod, const Elf_Ehdr *hdr, | |||
205 | || s->sh_entsize != ~0UL) | 205 | || s->sh_entsize != ~0UL) |
206 | continue; | 206 | continue; |
207 | s->sh_entsize = | 207 | s->sh_entsize = |
208 | get_offset((unsigned long *)&mod->core_size, s); | 208 | get_offset((unsigned long *)&mod->core_layout.size, s); |
209 | } | 209 | } |
210 | 210 | ||
211 | if (m == 0) | 211 | if (m == 0) |
212 | mod->core_text_size = mod->core_size; | 212 | mod->core_layout.text_size = mod->core_layout.size; |
213 | 213 | ||
214 | } | 214 | } |
215 | } | 215 | } |
@@ -641,7 +641,7 @@ static int vpe_elfload(struct vpe *v) | |||
641 | layout_sections(&mod, hdr, sechdrs, secstrings); | 641 | layout_sections(&mod, hdr, sechdrs, secstrings); |
642 | } | 642 | } |
643 | 643 | ||
644 | v->load_addr = alloc_progmem(mod.core_size); | 644 | v->load_addr = alloc_progmem(mod.core_layout.size); |
645 | if (!v->load_addr) | 645 | if (!v->load_addr) |
646 | return -ENOMEM; | 646 | return -ENOMEM; |
647 | 647 | ||