diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-11-23 14:49:20 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-11-23 17:09:59 -0800 |
commit | 8a27138924f64d2f30c1022f909f74480046bc3f (patch) | |
tree | 72d7d40e1cba07b08fea49a064c6388a6d2bd780 /arch/x86/include/asm/pgtable.h | |
parent | 55a6ca25472ee01574bfc24d23b7f5fa09cc38cf (diff) | |
download | op-kernel-dev-8a27138924f64d2f30c1022f909f74480046bc3f.zip op-kernel-dev-8a27138924f64d2f30c1022f909f74480046bc3f.tar.gz |
x86, mm: is_untracked_pat_range() takes a normal semiclosed range
is_untracked_pat_range() -- like its components, is_ISA_range() and
is_GRU_range(), takes a normal semiclosed interval (>=, <) whereas the
PAT code called it as if it took a closed range (>=, <=). Fix.
Although this is a bug, I believe it is non-manifest, simply because
none of the callers will call this with non-page-aligned addresses.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
LKML-Reference: <20091119202341.GA4420@sgi.com>
Diffstat (limited to 'arch/x86/include/asm/pgtable.h')
-rw-r--r-- | arch/x86/include/asm/pgtable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 1de2094..a34c785 100644 --- a/arch/x86/include/asm/pgtable.h +++ b/arch/x86/include/asm/pgtable.h @@ -274,7 +274,7 @@ static inline int is_new_memtype_allowed(u64 paddr, unsigned long size, /* * PAT type is always WB for untracked ranges, so no need to check. */ - if (x86_platform.is_untracked_pat_range(paddr, paddr + size - 1)) + if (x86_platform.is_untracked_pat_range(paddr, paddr + size)) return 1; /* |