diff options
author | Wen Congyang <wency@cn.fujitsu.com> | 2012-12-18 15:22:21 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-01-24 10:12:21 -0500 |
commit | f73568a059c3afd6323a9ee3860938df91252ee4 (patch) | |
tree | 01f065332db02d4c6063a12761ece9416e04d23b /arch | |
parent | 602e018607ba5c92922c0ffae40e346e1b95fa84 (diff) |
x86/mm: Fix the argument passed to sync_global_pgds()
The address range of sync_global_pgds() should be [start, end],
but we pass [start, end) to this function.
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Jiang Liu <liuj97@gmail.com>
Cc: Minchan Kim <minchan.kim@gmail.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/mm/init_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 2ead3c8a4c84..e779e0bb1dfd 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c | |||
@@ -605,7 +605,7 @@ kernel_physical_mapping_init(unsigned long start, | |||
605 | } | 605 | } |
606 | 606 | ||
607 | if (pgd_changed) | 607 | if (pgd_changed) |
608 | sync_global_pgds(addr, end); | 608 | sync_global_pgds(addr, end - 1); |
609 | 609 | ||
610 | __flush_tlb_all(); | 610 | __flush_tlb_all(); |
611 | 611 | ||
@@ -981,7 +981,7 @@ vmemmap_populate(struct page *start_page, unsigned long size, int node) | |||
981 | } | 981 | } |
982 | 982 | ||
983 | } | 983 | } |
984 | sync_global_pgds((unsigned long)start_page, end); | 984 | sync_global_pgds((unsigned long)start_page, end - 1); |
985 | return 0; | 985 | return 0; |
986 | } | 986 | } |
987 | 987 | ||