On Fri, Apr 11, 2014 at 10:23:22AM +0800, WANG Chao wrote:
> Signed-off-by: WANG Chao <[email protected]>

Thanks, Applied.

> ---
>  kexec/arch/i386/crashdump-x86.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/kexec/arch/i386/crashdump-x86.c b/kexec/arch/i386/crashdump-x86.c
> index 91872ab..72bce0b 100644
> --- a/kexec/arch/i386/crashdump-x86.c
> +++ b/kexec/arch/i386/crashdump-x86.c
> @@ -509,11 +509,11 @@ static int add_memmap(struct memory_range *memmap_p, 
> unsigned long long addr,
>               else if (addr > mend)
>                       tidx = i+1;
>       }
> -             /* Insert the memory region. */
> -             for (j = nr_entries-1; j >= tidx; j--)
> -                     memmap_p[j+1] = memmap_p[j];
> -             memmap_p[tidx].start = addr;
> -             memmap_p[tidx].end = addr + size - 1;
> +     /* Insert the memory region. */
> +     for (j = nr_entries-1; j >= tidx; j--)
> +             memmap_p[j+1] = memmap_p[j];
> +     memmap_p[tidx].start = addr;
> +     memmap_p[tidx].end = addr + size - 1;
>  
>       dbgprintf("Memmap after adding segment\n");
>       for (i = 0; i < CRASH_MAX_MEMMAP_NR;  i++) {
> -- 
> 1.8.5.3
> 

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

Reply via email to