Index: linux-2.6/arch/x86/kernel/cpu/mtrr/main.c =================================================================== --- linux-2.6.orig/arch/x86/kernel/cpu/mtrr/main.c +++ linux-2.6/arch/x86/kernel/cpu/mtrr/main.c @@ -1214,7 +1230,7 @@ int __init mtrr_trim_uncached_memory(uns if (range[0].start) total_real_trim_size += real_trim_memory(0, range[0].start); - for (i = 0; i < nr_range - 1; i--) { + for (i = 0; i < nr_range - 1; i++) { if (range[i].end + 1 < range[i+1].start) total_real_trim_size += real_trim_memory(range[i].end + 1, range[i+1].start); }