diff options
Diffstat (limited to 'kexec/crashdump-elf.c')
-rw-r--r-- | kexec/crashdump-elf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kexec/crashdump-elf.c b/kexec/crashdump-elf.c index 954d670..8d82db9 100644 --- a/kexec/crashdump-elf.c +++ b/kexec/crashdump-elf.c @@ -227,8 +227,8 @@ int FUNC(struct kexec_info *info, phdr->p_flags = PF_R|PF_W|PF_X; phdr->p_offset = mstart; - if (mstart == elf_info->backup_src_start - && mend == elf_info->backup_src_end) + if (mstart == info->backup_src_start + && (mend - mstart + 1) == info->backup_src_size) phdr->p_offset = info->backup_start; /* We already prepared the header for kernel text. Map |