diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/mm/init_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 7c8bb46e83e4..b8e461d49412 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c | |||
@@ -746,7 +746,7 @@ unsigned long __init_refok init_memory_mapping(unsigned long start, | |||
746 | old_start = mr[i].start; | 746 | old_start = mr[i].start; |
747 | memmove(&mr[i], &mr[i+1], | 747 | memmove(&mr[i], &mr[i+1], |
748 | (nr_range - 1 - i) * sizeof (struct map_range)); | 748 | (nr_range - 1 - i) * sizeof (struct map_range)); |
749 | mr[i].start = old_start; | 749 | mr[i--].start = old_start; |
750 | nr_range--; | 750 | nr_range--; |
751 | } | 751 | } |
752 | 752 | ||