Skip to content
  • Vivek Goyal's avatar
    [PATCH] Kexec on panic vmlinux initrd fix · 50cccc69
    Vivek Goyal authored
    
    
    This is a minor bug fix in kexec to resolve the problem of loading panic
    kernel with initrd.
    
    o Problem: Loading a capture kenrel fails if initrd is also being loaded.
      This has been observed for vmlinux image for kexec on panic case.
    
    o This patch fixes the problem. In segment location and size verification
      logic, minor correction has been done. Segment memory end (mend) should be
      mstart + memsz - 1. This one byte offset was source of failure for initrd
      loading which was being loaded at hole boundary.
    
    Signed-off-by: default avatarVivek Goyal <vgoyal@in.ibm.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    50cccc69